rankCorrelations: Ranks variable pair correlations

Description Usage Arguments Value

Description

Takes in a correlation matrix and returns an ordered dataframe of variable pairs. The order is from the absolute highest to lowest correlation.

Usage

1
rankCorrelations(m, N = NULL, autoname = FALSE)

Arguments

m

A correlation matrix

N

Default NULL will return all correlations. Change to e.g. N = 5 to return only the 5 highest absolute correlations

autoname

Automatically rename matrix columns and rows; default is FALSE. Only recommended if m does not have names already.

Value

Dataframe with three columns; 1. variable 1, 2. variable 2 and 3. correlation


elastacloud/automatic-data-explorer documentation built on May 8, 2019, 9:29 a.m.