recipes_ptype_validate {recipes} | R Documentation |
Validate prototype of recipe object
Description
This helper function validates a dataframe against the ptype of a recipe.
Usage
recipes_ptype_validate(
x,
new_data,
...,
stage = "prep",
call = rlang::caller_env()
)
Arguments
x |
A |
new_data |
A data.frame. To be patched aganist ptype of |
... |
currently not used. |
stage |
A single character. Must be one of |
call |
The execution environment of a currently running function, e.g.
|
Value
Nothing or an error.
See Also
developer_functions recipes_ptype
Examples
rec <- recipe(mpg ~ disp, data = mtcars)
recipes_ptype_validate(rec, mtcars)
[Package recipes version 1.3.1 Index]