Description Usage Examples
View source: R/Preprocessor.R
Helper function to select factor variables.
1
factors(data)
1 2 3 4
df <- data.frame(a=c(1,2,NA,3), b=c(10,20,30,NA), c=c("c1", NA, "c3", "c3")) prep <- impute(factors, most_frequent) prep$fit(df) prep$transform(df)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.