Skip to content

Commit

Permalink
update outdated create_summary_stats function return documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Sep 23, 2024
1 parent 1dbbfa8 commit 4881ddd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
12 changes: 7 additions & 5 deletions R/epiparameter-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ create_region <- function(continent = NA_character_,
)
}

# nolint start: line_length_linter
#' Specify reported summary statistics
#'
#' @description A helper function when creating an `<epiparameter>` object to
Expand Down Expand Up @@ -259,11 +260,11 @@ create_region <- function(continent = NA_character_,
#' If quantiles are not provided a default empty vector with the 2.5th, 5th,
#' 25th, 75th, 95th, 97.5th quantiles are supplied.
#'
#' @return A nested list of summary statistics. The highest level are
#' - `$centre_spread`
#' - `$quantiles`
#' - `$range`
#' - `$dispersion`
#' @return A list of summary statistics. The output list has element names
#' equal to the function arguments:
#' \preformatted{
#' `r paste("$", names(formals(create_summary_stats)), sep = "", collapse = "\n")`
#' }
#' @export
#'
#' @examples
Expand All @@ -286,6 +287,7 @@ create_region <- function(continent = NA_character_,
#' lower_range = 1,
#' upper_range = 13
#' )
# nolint end: line_length_linter
create_summary_stats <- function(mean = NA_real_,
mean_ci_limits = c(NA_real_, NA_real_),
mean_ci = NA_real_,
Expand Down
24 changes: 18 additions & 6 deletions man/create_summary_stats.Rd

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

0 comments on commit 4881ddd

Please sign in to comment.