Generates a data frame with the top k correlated pairs of features using pearson correlation

topcorr(df, k = "all")

Arguments

df

data.frame, the input data frame

k

numeric or character, default at "all", the number of feature pairs to return

Value

data.frame, the sorted correlation data frame

Examples

topcorr(iris, 1)
#> Feature 1 Feature 2 Aboslute Correlation #> 1 Petal.Width Petal.Length 0.9629