numerics: Helper function to select numeric variables.

Description Usage Examples

View source: R/Preprocessor.R

Description

Helper function to select numeric variables.

Usage

1

Examples

1
2
3
4
df <- data.frame(a=c(1,2,NA,3), b=c(10,20,30,NA), c=c("c1", "c2", "c3", "c4"))
prep <- impute(numerics, mean, na.rm = TRUE)
prep$fit(df)
prep$transform(df)

rtsho/preprocessr documentation built on May 29, 2019, 8:58 a.m.