Skip to content

Commit

Permalink
doc: minor corrections to get_age_group documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorresd committed Dec 15, 2023
1 parent 0c22788 commit 94f0e5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/seroprevalence_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ generate_sim_data <- function(foi,
#'
#' This function was taken from [get_age_group][vaccineff::get_age_group].
#' This method splits an age interval from age_min to age_max into
#' (age_max-age_min)/step intervals.
#' `(age_max-age_min)/step` intervals.
#' By default age_min is set 0, however it can be assigned by
#' convenience.
#' If the method finds ages greater or equal than age_max
#' it assigns the string ">{age_max}".
#' To avoid errors it is necessary to set step < age_max.
#' it assigns the string `">{age_max}"`.
#' To avoid errors it is necessary to set `step<age_max`.
#' It is also suggested to choose the step such
#' that age_max%%(step+1) = 0.
#' that `age_max%%(step+1)=0`.
#' @param age vector containing age information
#' @param step step used to split the age interval
#' @return age_group factor variable grouping `age` by the age intervals
Expand Down
8 changes: 4 additions & 4 deletions man/get_age_group.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94f0e5c

Please sign in to comment.