powered by
Given 'df' and 'predictors' arguments, this function subsets and returns the numeric predictors.
identify_numeric_predictors(df = NULL, predictors = NULL)
character vector with names of numeric predictors.
(required; data frame) A data frame with numeric and/or character predictors predictors, and optionally, a response variable. Default: NULL.
(optional; character vector) A vector with predictor names in 'df'. If omitted, all columns of 'df' are used as predictors. Default:'NULL'
Blas M. Benito
if (interactive()) { data( vi, vi_predictors ) numeric.predictors <- identify_numeric_predictors( df = vi, predictors = vi_predictors ) numeric.predictors }
Run the code above in your browser using DataLab