title: How to calculate p values for entire table of spearman rho values in R
body: <p>I used the following code to get an entire table of Spearman Rho correlations in R from a CSV file with only 1 data type (numbers):</p>
  
  <pre><code>&gt; myDataset &lt;- read.csv(file.choose())
  &gt; attach(myDataset)
  &gt; spearmanRhoTable &lt;- cor(myDataset, use="complete.obs",method="spearman")
  </code></pre>
  
  <p>Is there any way I could take my table of r-values (spearmanRhoTable) and get a table of all the p-values, rather than having to enter each Spearman correlation manually to get individual p-values?</p>
  
  <p>Here is my table of r-values. It's called spearmanRhoTable, and I was wondering if there was a quick way to get p-values for everything in this table.
  <a href="https://i.stack.imgur.com/h0nwX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h0nwX.jpg" alt="picture of Spearman Rho values"></a></p>