Description Usage Arguments Value See Also Examples
View source: R/cor_get_n_strongest.r
Takes a dataframe and calculates pairwise correlations between all numeric/logical variables. Returns a tibble with strongest n correlations. Might also return the p-value in the future.
1 2 | CorGetNStrongest(df, n = 10, method = "pearson",
use = "pairwise.complete.obs")
|
df |
dataframe (e.g. tibble) |
n |
number of strongest correlations to return |
method |
type of correlationn, see |
use |
how to deal with missing values, see |
tibble with columns var1, var2, r
stats::cor
which this function wraps
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.