CorGetNStrongest: Return strongest n correlations in dataframe

Description Usage Arguments Value See Also Examples

View source: R/cor_get_n_strongest.r

Description

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.

Usage

1
2
CorGetNStrongest(df, n = 10, method = "pearson",
  use = "pairwise.complete.obs")

Arguments

df

dataframe (e.g. tibble)

n

number of strongest correlations to return

method

type of correlationn, see stats::cor

use

how to deal with missing values, see stats::cor

Value

tibble with columns var1, var2, r

See Also

stats::cor which this function wraps

Examples

1

petersmittenaar/peterr documentation built on Feb. 13, 2021, 9:20 p.m.