Generates a data frame with the top k correlated pairs of features using pearson correlation
topcorr(df, k = "all")
df | data.frame, the input data frame |
---|---|
k | numeric or character, default at "all", the number of feature pairs to return |
data.frame, the sorted correlation data frame
topcorr(iris, 1)#> Feature 1 Feature 2 Aboslute Correlation #> 1 Petal.Width Petal.Length 0.9629