get_preprocessors: make a list of suitable preprocessors for omonimous argument...

View source: R/preprocess_data.R

get_preprocessorsR Documentation

make a list of suitable preprocessors for omonimous argument in preprocess_data

Description

make a list of data preprocessors suitable for preprocessors argument in preprocess_data given an xlsx file properly constructed

Usage

get_preprocessors(f = NULL)

Arguments

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

Examples

## Not run: 
   proprocs <- get_preprocessors('./data/preprocessors.xlsx')
   db_clean <- preprocess_data(db, preprocs$db)

## End(Not run)

lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.