indicator = 'none'
and factor interactions existCode
mold(num_1 ~ fac_1:num_2, example_train, blueprint = default_formula_blueprint(
indicators = "none"))
Condition
Error in `mold()`:
! Interaction terms involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Interactions terms involving factors were detected for "fac_1" in `fac_1:num_2`.
Code
mold(num_1 ~ fac_1:num_2, example_train, blueprint = default_formula_blueprint(
indicators = "none"))
Condition
Error in `mold()`:
! Interaction terms involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Interactions terms involving factors were detected for "fac_1" in `fac_1:num_2`.
Code
mold(num_1 ~ fac_1 * num_2, example_train, blueprint = default_formula_blueprint(
indicators = "none"))
Condition
Error in `mold()`:
! Interaction terms involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Interactions terms involving factors were detected for "fac_1" in `fac_1 * num_2`.
Code
mold(num_1 ~ (fac_1 + num_2)^2, example_train, blueprint = default_formula_blueprint(
indicators = "none"))
Condition
Error in `mold()`:
! Interaction terms involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Interactions terms involving factors were detected for "fac_1" in `(fac_1 + num_2)^2`.
Code
mold(num_1 ~ fac_1 %in% num_2, example_train, blueprint = default_formula_blueprint(
indicators = "none"))
Condition
Error in `mold()`:
! Interaction terms involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Interactions terms involving factors were detected for "fac_1" in `fac_1 %in% num_2`.
Code
mold(~ fac_1:fac_12, example_train2, blueprint = default_formula_blueprint(
indicators = "none"))
Condition
Error in `mold()`:
! Interaction terms involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Interactions terms involving factors were detected for "fac_1" in `fac_1:fac_12`.
indicator = 'none'
and factors are used in inline functionsCode
mold(~ paste0(fac_1), example_train, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `paste0(fac_1)`.
Code
mold(~ paste0(fac_1), example_train, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `paste0(fac_1)`.
Code
mold(~ fac_1 %>% paste0(), example_train, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `fac_1 %>% paste0()`.
Code
mold(~ paste0(fac_1 + fac_1), example_train, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `fac_1 + fac_1`.
Code
mold(~ (fac_1) & num_1, example_train, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `(fac_1)`.
Code
mold(~ (fac_1 & num_1), example_train, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `fac_1 & num_1`.
Code
mold(~ paste0(fac_1) + paste0(fac_12), example_train2, blueprint = blueprint_no_indicators)
Condition
Error in `mold()`:
! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`.
i Functions involving factors were detected for "fac_1" in `paste0(fac_1)`.
Code
mold(fac_1 ~ y + z, example_train)
Condition
Error in `mold()`:
! The following predictors were not found in `data`: "y" and "z".
Code
mold(fac_1 ~ y + z, example_train, blueprint = bp)
Condition
Error in `mold()`:
! The following predictors were not found in `data`: "y" and "z".
Code
mold(y + z ~ fac_1, example_train)
Condition
Error in `mold()`:
! The following outcomes were not found in `data`: "y" and "z".
Code
mold(y + z ~ fac_1, example_train, blueprint = bp)
Condition
Error in `mold()`:
! The following outcomes were not found in `data`: "y" and "z".
Code
y <- 1
mold(fac_1 ~ y, example_train)
Condition
Error in `mold()`:
! The following predictor was not found in `data`: "y".
Code
mold(fac_1 ~ y + 0, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term: `+ 0` or `0 +`.
Code
mold(fac_1 ~ y + 0, example_train, blueprint = bp)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term: `+ 0` or `0 +`.
Code
mold(fac_1 ~ 0 + y, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term: `+ 0` or `0 +`.
Code
mold(fac_1 ~ y - 1, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term: `- 1`.
Code
mold(~0, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term, `0`.
Code
mold(~0, example_train, blueprint = bp)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term, `0`.
Code
mold(~1, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept term, `1`.
Code
mold(~ -1, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term: `- 1`.
NULL
can be used to represent empty RHS formulasCode
mold(~0, example_train)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term, `0`.
Code
mold(~0, example_train, blueprint = bp)
Condition
Error in `mold()`:
! `formula` must not contain the intercept removal term, `0`.
data
is validatedCode
mold(fac_1 ~ num_2, 1)
Condition
Error in `mold()`:
! `data` must be a data frame or a matrix, not the number 1.
Code
mold(fac_1 ~ num_2, 1, blueprint = bp)
Condition
Error in `mold()`:
! `data` must be a data frame or a matrix, not the number 1.
Code
mold(num_1:num_2 ~ num_2, example_train)
Condition
Error in `mold()`:
! Interaction terms can't be specified on the LHS of `formula`.
i The following interaction term was found: `num_1:num_2`.
Code
mold(num_1 * num_2 ~ num_2, example_train)
Condition
Error in `mold()`:
! Interaction terms can't be specified on the LHS of `formula`.
i The following interaction term was found: `num_1 * num_2`.
Code
mold(num_1 %in% num_2 ~ num_2, example_train)
Condition
Error in `mold()`:
! Interaction terms can't be specified on the LHS of `formula`.
i The following interaction term was found: `num_1 %in% num_2`.
Code
mold((num_1 + num_2)^2 ~ num_2, example_train)
Condition
Error in `mold()`:
! Interaction terms can't be specified on the LHS of `formula`.
i The following interaction term was found: `(num_1 + num_2)^2`.
Code
mold(num_1:num_2 + fac_1:num_1 ~ num_2, example_train)
Condition
Error in `mold()`:
! Interaction terms can't be specified on the LHS of `formula`.
i The following interaction term was found: `num_1:num_2`.
Code
mold(num_1 / num_2 ~ num_2, example_train)
Condition
Error in `mold()`:
! Interaction terms can't be specified on the LHS of `formula`.
i The following interaction term was found: `num_1/num_2`.
.
notation fails on the LHSCode
mold(. ~ fac_1, example_train)
Condition
Error in `mold()`:
! The left-hand side of the formula cannot contain `.`.
Code
mold(. ~ fac_1, example_train, blueprint = bp)
Condition
Error in `mold()`:
! The left-hand side of the formula cannot contain `.`.
blueprint
is validatedCode
mold(~x, df, blueprint = 1)
Condition
Error in `mold()`:
! `blueprint` must be a <formula_blueprint>, not the number 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.