portion: Extract Finalized Training Set

Description Usage Arguments Details See Also

View source: R/portion.R


As steps are estimated by 'prep', these operations are applied to the training set. Rather than running 'bake' to duplicate this processing, this function will return variables from the processed training set.


portion(object, ...)



A 'recipe' object that has been prepared with the option 'retain = TRUE'.


One or more selector functions to choose which variables will be returned by the function. See selections() for more details. If no selectors are given, the default is to use everything().


When preparing a recipe, if the training data set is retained using 'retain = TRUE', there is no need to 'bake' the recipe to get the preprocessed training set.

'portion' will return the results of a recipes where _all steps_ have been applied to the data, irrespective of the value of the step's 'skip' argument.

See Also

[recipe()] [prep.recipe()] [bake.recipe()] [juice.recipe()]

jkennel/waterlevel documentation built on Dec. 1, 2019, 6:24 p.m.