Fit and subtract a baseline from a measurement signal
Usage
step_baseline(
recipe,
...,
role = NA,
trained = FALSE,
options = NULL,
skip = FALSE,
id = recipes::rand_id("measure")
)
Arguments
- recipe
A recipe object. The step will be added to the sequence of operations for this recipe.
- ...
One or more selector functions to choose variables for this step.
- role
Assign the role of new variables.
- trained
A logical to indicate if the quantities for preprocessing have been estimated.
- options
A list of options to the default method for
stats::prcomp()
. Argument defaults are set toretx = FALSE
,center = FALSE
,scale. = FALSE
, andtol = NULL
. Note that the argumentx
should not be passed here (or at all).- skip
A logical. Should the step be skipped when the recipe is baked by
bake()
? While all operations are baked whenprep()
is run, some operations may not be able to be conducted on new data (e.g. processing the outcome variable(s)). Care should be taken when usingskip = TRUE
as it may affect the computations for subsequent operations.- id
A character string that is unique to this step to identify it.