| validate_single_dep_var | R Documentation |
Common validation pattern for functions that require exactly one dependent variable.
validate_single_dep_var(dep, function_name)
dep |
Vector of dependent variables |
function_name |
Name of the function requiring validation (for error message) |
Nothing if valid, throws error if invalid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.