Code
validate_outcomes_are_univariate(iris)
Condition
Error in `validate_outcomes_are_univariate()`:
! The outcome must be univariate, but 5 columns were found.
Code
validate_outcomes_are_numeric(iris)
Condition
Error in `validate_outcomes_are_numeric()`:
! All outcomes must be numeric.
i The following is not:
"Species": <factor>
Code
validate_outcomes_are_numeric(x)
Condition
Error in `validate_outcomes_are_numeric()`:
! All outcomes must be numeric.
i The following are not:
"x": <POSIXct/POSIXt>
"y": <factor>
Code
validate_no_formula_duplication(y ~ y)
Condition
Error in `validate_no_formula_duplication()`:
! Terms must not be duplicated on the left- and right-hand side of the `formula`.
i The following duplicated term was found: "y"
Code
validate_no_formula_duplication(y ~ log(y), original = TRUE)
Condition
Error in `validate_no_formula_duplication()`:
! Terms must not be duplicated on the left- and right-hand side of the `formula`.
i The following duplicated term was found: "y"
Code
validate_no_formula_duplication(y + x ~ y + x)
Condition
Error in `validate_no_formula_duplication()`:
! Terms must not be duplicated on the left- and right-hand side of the `formula`.
i The following duplicated terms were found: "y" and "x"
Code
validate_no_formula_duplication(y ~ . + y)
Condition
Error in `validate_no_formula_duplication()`:
! Terms must not be duplicated on the left- and right-hand side of the `formula`.
i The following duplicated term was found: "y"
Code
validate_no_formula_duplication(y ~ offset(y), original = TRUE)
Condition
Error in `validate_no_formula_duplication()`:
! Terms must not be duplicated on the left- and right-hand side of the `formula`.
i The following duplicated term was found: "y"
Code
validate_outcomes_are_factors(x)
Condition
Error in `validate_outcomes_are_factors()`:
! All outcomes must be factors.
i The following are not:
"x": <POSIXct/POSIXt>
"y": <character>
Code
validate_outcomes_are_binary(iris)
Condition
Error in `validate_outcomes_are_binary()`:
! The outcome must be binary.
i The following number of levels were found:
"Sepal.Length": 0
"Sepal.Width": 0
"Petal.Length": 0
"Petal.Width": 0
"Species": 3
Code
validate_predictors_are_numeric(iris)
Condition
Error in `validate_predictors_are_numeric()`:
! All predictors must be numeric.
i The following is not:
"Species": <factor>
Code
validate_predictors_are_numeric(x)
Condition
Error in `validate_predictors_are_numeric()`:
! All predictors must be numeric.
i The following are not:
"x": <POSIXct/POSIXt>
"y": <factor>
Code
validate_prediction_size(mtcars[1:5, ], mtcars)
Condition
Error in `validate_prediction_size()`:
! The size of `new_data` (32) must match the size of `pred` (5).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.