title: correlation of one variable to all the other in R
body: <p>I want to calculate the correlation between my dependent variable y and all my x. I use the code below,</p>
  
  <pre><code>   cor(loan_data_10v[sapply(loan_data_10v, is.numeric)],use="complete.obs")
  </code></pre>
  
  <p>the result is a correlation matrix.
  How can i just get one column with my variable y.</p>