Variables_selection: Select the best features for your model based on correlation

Description Usage Arguments Value

View source: R/Variables_selection.R

Description

Calculate the correlation of every variables with your targeted one then extract the top n elements. Remove automatically non numeric variables from its analysis.

Usage

1
Variables_selection(x, Target, n)

Arguments

x

A dataset with your taregeted variable

Target

The colname of your targeted variable

n

The number of variables you would like to take as regressors

Value

A dataframe containing the variables' names and their correlation with your target


samchaineau/ModBrowse documentation built on Feb. 17, 2020, 1:57 p.m.