Factor/categorical predictors need to be converted to numeric values (e.g., dummy or indicator variables) for this engine. When using the formula method via \code{\link[=fit.model_spec]{fit.model_spec()}}, parsnip will convert factor columns to indicators.



Try the rules package in your browser

Any scripts or data that you put into this service are public.

rules documentation built on Aug. 8, 2021, 1:06 a.m.