Transform a predx objects to a target predx class.

transform_predx(x, to_class, ...)

# S4 method for list
transform_predx(x, to_class, ...)

Arguments

x

a predx object or list of predx objects

to_class

character specifying predx class to convert to, e.g. "BinLwr"

cat

if to_class is "BinCat", character vector of categorical bin names

lwr

if to_class is "BinLwr", numeric vector of lower bounds for bins

Value

A predx object or list of predx objects, with NAs and warning messages for failed conversions.

Details

This function converts a predx object or list of predx objects to another specified predx class when possible.