executeCoercions: executeCoercions:

Description Usage Arguments Value

View source: R/pd_executeCoercions.R

Description

executeCoercions:

Usage

1
executeCoercions(df, whitespace_trim = TRUE, clean_var_names = TRUE)

Arguments

df

Input dataframe

whitespace_trim

User defined boolean for whether leading/trailing white space is trimmed in strings (TRUE / FALSE)

clean_var_names

User defined boolean indicating whether to clean the variable names using janitor::clean_names, DEFAULT = T

Value

out list containing 3 data frames df, data_types, data_names

df Dataframe with factor fields converted to character type and white space trimming (if option is selected by the user)

data_types Dataframe with field types before and after cleaning for both df and DFB


eauleaf/dataReviewR documentation built on Dec. 20, 2021, 3:11 a.m.