preproc: Preprocessing and Unification of Variable Names of Two Input Data Sets
Description
In this function data preprocessing has been meticulously executed to cover a wide range of datasets, ensuring that variable names are standardized using synonyms.
Usage
preproc(d1, d2)
# S3 method for explain
print(x,...)
Value
preproc an object of class 'explain'.
An object of class 'explain' is a list containing the following components:
Changed variable's names
Character.
Changed variable's classes
Character.
Initial variable's names
Character.
Initial variable's classes
Character.
A number of changed variable values for the first dataset are
Data frame.
A number of changed variable values for the second dataset
Data frame.
Number of changed variable's names
Vector.
Arguments
d1
A data frame.
d2
A data frame.
x
an object of class 'eplain'.
...
further arguments passed to preproc function.
Author
Hossein Hassani and and Leila Marvian Mashhad and Sara Stewart and Steve Macfeelys.
Details
Because we want users to be able to change their names. The output of this function gives the names and classes that have changed in the new version and the previous version, as well as the number of changes in both datasets. Returns the corresponding number for the chz argument in the chzInput function.