Description Usage Arguments Value
This function takes a dataframe and returns a pairwise correlation of all data within it. This includes deselecting non-numeric columns, removing constant columns and dropping NA values. The output of this function has utility in producing network graphs in conjunction with the tidygraphs and ggraph packages.
1 |
df |
A dataframe. |
method |
The method to supply to the cor() function - "pearson", "spearman" or "kendall". |
A three-column dataframe - two columns of items and one column of correlation coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.