View source: R/preprocess_data.R
get_preprocessors | R Documentation |
make a list of data preprocessors suitable for preprocessors argument in preprocess_data given an xlsx file properly constructed
get_preprocessors(f = NULL)
f |
xlsx file path (one sheet per data.frame, all are imported); the name of the sheet should be the name of the data.frame the preprocessors refers to; the first column (of each sheet) is a variable name; the other colnames are function names to be used with each variable marked. For each row (variable) put a "x" (btw '!is.na') is used to mark the variable with the proper coercer |
## Not run:
proprocs <- get_preprocessors('./data/preprocessors.xlsx')
db_clean <- preprocess_data(db, preprocs$db)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.