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{