View source: R/misc.R View source: R/import-standalone-types-check.R
check_name | R Documentation |
check_name
is to be used in the bake function to ensure that
newly created variable names don't overlap with existing names.
Throws an error if check fails.
check_name(
res,
new_data,
object,
newname = NULL,
names = FALSE,
call = caller_env()
)
res |
A data frame or tibble of the newly created variables. |
new_data |
A data frame or tibble passed to the bake function. |
object |
A trained object passed to the bake function. |
newname |
A string of variable names if prefix isn't specified in the trained object. |
names |
A logical determining if the names should be set using the names function (TRUE) or colnames function (FALSE). |
call |
The execution environment of a currently running function, e.g.
|
developer_functions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.