recipes_ptype_validate | R Documentation |
This helper function validates a dataframe against the ptype of a recipe.
recipes_ptype_validate(
x,
new_data,
...,
stage = "prep",
call = rlang::caller_env()
)
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.
|
Nothing or an error.
developer_functions recipes_ptype
rec <- recipe(mpg ~ disp, data = mtcars)
recipes_ptype_validate(rec, mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.