validate_response | R Documentation |
Internal function to validate the argument response
. Requires the argument 'df' to be validated with validate_df()
.
validate_response(df = NULL, response = NULL, quiet = FALSE)
df |
(required; data frame, tibble, or sf) A data frame with responses and predictors. Default: NULL. |
response |
(optional; character string or vector) Name/s of response variable/s in |
quiet |
(optional; logical) If FALSE, messages generated during the execution of the function are printed to the console Default: FALSE |
character string: response name
Other data_validation:
validate_data_cor()
,
validate_data_vif()
,
validate_df()
,
validate_encoding_arguments()
,
validate_predictors()
,
validate_preference_order()
data(
vi
)
#validating example data frame
vi <- validate_df(
df = vi
)
#validating example predictors
response <- validate_response(
df = vi,
response = "vi_numeric"
)
#tagged as validated
attributes(response)$validated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.