Skip to content

Commit e2ae440

Browse files
committed
Two changes Header of Recipe --> Epi Recipe, added print statement for the unexported print.step_naomit() from recipes.
1 parent 84cf7b2 commit e2ae440

8 files changed

+53
-28
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ S3method(print,step_epi_ahead)
7272
S3method(print,step_epi_lag)
7373
S3method(print,step_growth_rate)
7474
S3method(print,step_lag_difference)
75+
S3method(print,step_naomit)
7576
S3method(print,step_population_scaling)
7677
S3method(print,step_training_window)
7778
S3method(quantile,dist_quantiles)

R/epi_recipe.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ kill_levels <- function(x, keys) {
415415
print.epi_recipe <- function(x, form_width = 30, ...) {
416416
cli::cli_div(theme = list(.pkg = list("vec-trunc" = Inf, "vec-last" = ", ")))
417417

418-
cli::cli_h1("Recipe")
418+
cli::cli_h1("Epi Recipe")
419419
cli::cli_h3("Inputs")
420420

421421
tab <- table(x$var_info$role, useNA = "ifany")

R/step_epi_naomit.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ step_epi_naomit <- function(recipe) {
1717
recipes::step_naomit(all_predictors(), skip = FALSE) %>%
1818
recipes::step_naomit(all_outcomes(), skip = TRUE)
1919
}
20+
21+
#' @export
22+
print.step_naomit <- # not exported from recipes package
23+
function(x, width = max(20, options()$width - 30), ...) {
24+
title <- "Removing rows with NA values in "
25+
print_step(x$columns, x$terms, x$trained, title, width)
26+
invisible(x)
27+
}

man/smooth_quantile_reg.Rd

Lines changed: 15 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/step_growth_rate.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/step_lag_difference.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/step_population_scaling.Rd

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/step_training_window.Rd

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)