remove_high_corr_features: Wrapper function of caret::findCorrelation: find and remove...

View source: R/modelling.R

remove_high_corr_featuresR Documentation

Wrapper function of caret::findCorrelation: find and remove highly correlated features

Description

Wrapper function of caret::findCorrelation: find and remove highly correlated features

Usage

remove_high_corr_features(df, level = 0.99, simplify = FALSE)

Arguments

df

a data frame of numerical values w/o NAs

level

a numeric for threshold as cutoff point for defining 'high correlation'

requires data frame of numeric w/o missing values

Details

if level == 1, find all perfectly correlated variables, remove half and return a list containing removed feature name pairs, unless simplify == TRUE

Value

returns a list of 1) reduced df 2) corr table of removed features


fjoe88/d8ahelper documentation built on Feb. 6, 2023, 7:55 a.m.