df_to_numeric: clean data and prepare for pca

View source: R/df_to_numeric.R View source: R/df_to_numeric-copy.R

df_to_numericR Documentation

clean data and prepare for pca

Description

data canversion to numeric, dummy variables for multi-level categorical vars, missing value imputation

Usage

df_to_numeric(t1, df1, imp_cutoff_perc = 25, un_filter_perc = 20)

Arguments

t1

output uf add_summary fct

df1

data.frame to be cleaned

imp_cutoff_perc

percentage of missing values for a variable to be excluded

un_filter_perc

percentage of unique values of a categorical variable to be excluded

Value

data.frame of cleaned numberic variables


tkimhofer/cleansing documentation built on Oct. 25, 2022, 1:12 a.m.