Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

recipes-internal

Internal Functions


Description

These are not to be used directly by the users.

This internal function is used for printing steps.

This internal function takes a list of selectors (e.g. terms in most steps) and returns a character vector version for printing.

Usage

yj_transform(x, lambda, eps = 0.001)

estimate_yj(dat, limits = c(-5, 5), num_unique = 5, na_rm = TRUE)

ellipse_check(...)

printer(
  tr_obj = NULL,
  untr_obj = NULL,
  trained = FALSE,
  width = max(20, options()$width - 30)
)

prepare(x, ...)

is_trained(x)

sel2char(x)

Arguments

x

A list of selectors

...

Arguments pass in from a call to step

tr_obj

A character vector of names that have been resolved during preparing the recipe (e.g. the columns object of step_log()).

untr_obj

An object of selectors prior to prepping the recipe (e.g. terms in most steps).

trained

A logical for whether the step has been trained.

width

An integer denoting where the output should be wrapped.

Value

If not empty, a list of quosures. If empty, an error is thrown.

NULL, invisibly.

A logical

A character vector


recipes

Preprocessing Tools to Create Design Matrices

v0.1.16
MIT + file LICENSE
Authors
Max Kuhn [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.