tests/testthat/helper-recipe-scale_center.R

# inputs
one_predictor_df <- data.frame(x = 1:5, y = 6:10)
one_predictor_formula <- x ~ y

two_predictors_df <- data.frame(x = 1:5, y = 6:10, z = 16:20)
two_predictors_formula <- x ~ y + z

three_predictors_df <- data.frame(x = 1:5, y = 6:10, z = 16:20, w = 51:55)
three_predictors_formula <- x ~ y + z + w

empty_df <- data.frame()
no_col_has_rows_df <- two_predictors_df[,FALSE]
not_df <- list(1, 2, 3, 4)

bin <- TRUE
not_formula <- "x"

recipe_type <- "recipe"
DSCI-310/DSCI-310-Group-11-package documentation built on April 9, 2022, 12:32 a.m.