Description Usage Arguments Value
View source: R/DataframeCompare.R
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.
1 2 | fx_Align_Impute(original_dataframe, transform_dataframe,
exclude_attribute_list, factor_imputation, numerical_imputation)
|
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" |
A modified data.frame that resembles the original data.frame with aligned classes, factor levels, and imputed values for NA elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.