From c4935db3077d7905f22d75c2c5a9f040cf802f76 Mon Sep 17 00:00:00 2001 From: Emily de la Rua Date: Fri, 12 Jul 2024 15:46:07 -0400 Subject: [PATCH] Fix typo in has_fraction_in_any_col example --- DESCRIPTION | 2 +- R/prune_occurrences.R | 2 +- man/prune_occurrences.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 120bb19a5a..1ecbd6d2bb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -81,7 +81,7 @@ Encoding: UTF-8 Language: en-US LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Collate: 'formatting_functions.R' 'abnormal.R' diff --git a/R/prune_occurrences.R b/R/prune_occurrences.R index fc0fe99446..0e105a0f37 100644 --- a/R/prune_occurrences.R +++ b/R/prune_occurrences.R @@ -180,7 +180,7 @@ has_fraction_in_cols <- function(atleast, ...) { #' \donttest{ #' # `has_fraction_in_any_col` #' any_atleast_five_percent <- has_fraction_in_any_col(atleast = 0.05, col_names = names(tab)) -#' prune_table(tab, keep_rows(more_than_five_percent)) +#' prune_table(tab, keep_rows(any_atleast_five_percent)) #' } #' #' @export diff --git a/man/prune_occurrences.Rd b/man/prune_occurrences.Rd index 42256664bd..33e2c0a3e9 100644 --- a/man/prune_occurrences.Rd +++ b/man/prune_occurrences.Rd @@ -167,7 +167,7 @@ prune_table(tab, keep_rows(more_than_five_percent)) \donttest{ # `has_fraction_in_any_col` any_atleast_five_percent <- has_fraction_in_any_col(atleast = 0.05, col_names = names(tab)) -prune_table(tab, keep_rows(more_than_five_percent)) +prune_table(tab, keep_rows(any_atleast_five_percent)) } \donttest{