findcor | R Documentation |
Two dataframes from one of the "get" functions recommended, but works with any dataframe that shares columns as well as column lengths.
findcor(a, b, sdata)
a |
First dataframe |
b |
Second dataframe |
sdata |
A string of the column name to compare |
The correlation as a single numeric.
findcor(SPYdaily, GMEdaily, "returns")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.