Convenience function for preprocessing workflow
preprocess.RdThis helper function provides a simple interface for the common preprocessing workflow: fit a preprocessor to data and return both the fitted preprocessor and the transformed data.
Arguments
- preproc
A preprocessing object (e.g., created with
center(),standardize(), etc.)- X
A matrix or data frame to preprocess
- ...
Additional arguments passed to methods
Value
A list with two elements:
- preproc
The fitted preprocessing object
- transformed
The transformed data matrix