Extra Recipes for Encoding Predictors

Predictors can be converted to one or more numeric representations using a variety of methods. Effect encodings using simple generalized linear models or nonlinear models can be used. There are also functions for dimension reduction and other approaches.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("embed")

1.2.2 by Emil Hvitfeldt, 8 months ago


https://embed.tidymodels.org, https://github.com/tidymodels/embed


Report a bug at https://github.com/tidymodels/embed/issues


Browse source code at https://github.com/cran/embed


Authors: Emil Hvitfeldt [aut, cre] (ORCID: , Max Kuhn [aut] , Posit Software , PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, dplyr, generics, glue, lifecycle, purrr, rlang, rsample, stats, tibble, tidyr, utils, uwot, vctrs, withr

Depends on recipes

Suggests covr, dials, ggplot2, hardhat, irlba, keras3, knitr, lme4, modeldata, rmarkdown, rpart, rstanarm, stringdist, tensorflow, testthat, VBsparsePCA, xgboost


Suggested by bundle, orbital, tidybins.


See at CRAN