README.md

NMRrecipes

NRM scaling steps for the recipes R package

Introduction

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.

Installation

To install this package, use:

require("devtools")
install_github("CVUA-RRW/NMRrecipes")


CVUA-RRW/NMRrecipes documentation built on Jan. 21, 2021, 1:53 a.m.