fx_Align_Impute: Align Attribute Classes, Factor Levels, and Impute Missing...

Description Usage Arguments Value

View source: R/DataframeCompare.R

Description

This function takes a reference data.frame and alters a target data.frame to resemble the reference. The classes, factor levels, and imputed values will be taken from the reference data.frame unless otherwise specified in the parameters.

Usage

1
2
fx_Align_Impute(original_dataframe, transform_dataframe,
  exclude_attribute_list, factor_imputation, numerical_imputation)

Arguments

original_dataframe

The source dataframe to be referenced

transform_dataframe

The dataframe to be transformed

exclude_attribute_list

Optional list of attributes/columns to be ignore from both data.frames

factor_imputation

Optional method for handling extra levels for factor attributes: "edf", "mode", "uniform", "NA", "ignore"

numerical_imputation

Optional method for handling NAs for numerical attributes: "mean", "median", "mode", "edf", "ignore"

Value

A modified data.frame that resembles the original data.frame with aligned classes, factor levels, and imputed values for NA elements


crcastillo/DSTools documentation built on Nov. 4, 2019, 9:17 a.m.