Convert logical and character columns to appropriate types, re-order factor
levels to match the ordering learned during fitting (stored in
object$factor_levels), re-encode factor columns as integers, and return a
numeric matrix suitable for the underlying C++ prediction routines.
Arguments
- object
An object of class
rpfreturned byrpf().- predictors
A data frame or matrix of predictor values to preprocess.
Details
This is primarily an internal utility used by predict() methods but is
exported to support advanced users and tests.