title: Correlation matrix with a huge dataset with NAs: How to pass the command na.rm=TRUE to ignore NAs
body: <p>Is it possible to pass the <code>na.rm=TRUE</code> in a correlation function? Kindly assist on how I can position the command <code>na.rm=TRUE</code>.</p>
  <pre class="lang-r prettyprint-override"><code>cor(df[unlist(lapply(df, is.numeric, na.rm = TRUE))])
  </code></pre>
  <p>I get this error message:</p>
  <blockquote>
  <p>Error in FUN(X[[i]], ...) : 2 arguments passed to 'is.numeric' which requires 1</p>
  </blockquote>