NRM scaling steps for the recipes R package
This package introduces several preprocessing steps to use in the recipes
framework
of tidymodels
:
library(recipes)
library(NMRrecipes)
rec_pareto <- recipe(Species ~., iris) %>%
step_pareto(all_predictors())
# VAST scalings include normalization
rec_vast <- recipe(Species ~., iris) %>%
step_vast(all_predictors(), scaling = 'autoscale')
rec_pareto_vast <- recipe(Species ~., iris) %>%
step_vast(all_predictors(), scaling = 'pareto')
# Note that s-vast and x-vast are supervised methods
rec_svast <- recipe(Species ~., iris) %>%
step_svast(all_predictors(), scaling = 'autoscale', outcome = "Species")
rec_xvast <- recipe(Species ~., iris) %>%
step_xvast(all_predictors(), scaling = 'autoscale', outcome = "Species")
See the man pages for more details.
To install this package, use:
require("devtools")
install_github("CVUA-RRW/NMRrecipes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.