Description Usage Arguments Examples
Helper function that checks if a ml_pipeline_builder
method is unary function (if it
isn't a NULL returning function), and if it isn't, throws an error that is customised with the
method function name.
1 | check_unary_func_throw_error(func, func_name)
|
func |
A |
func_name |
The name of the |
1 2 3 4 5 6 | ## Not run:
transform_method <- function(df) df
check_unary_func_throw_error(transform_method, "transform_method")
# NULL
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.