Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed May 2, 2024
1 parent cdc4387 commit f7bf38b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
4 changes: 1 addition & 3 deletions R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ create_clean_reported_cases <- function(data, horizon = 0,
#' @description `r lifecycle::badge("stable")`
#' Creates a complete data set without NA values and appropriate indices
#'
#' @param cases; data frame with a column "confirm" that may contain NA values
#' @param burn_in; integer (default 0). Number of days to remove from the
#' start of the time series be filtered out.
#' @param cases data frame with a column "confirm" that may contain NA values
#'
#' @return A data frame without NA values, with two columns: confirm (number)
#' @importFrom data.table setDT
Expand Down
12 changes: 4 additions & 8 deletions R/dist_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ convert_to_natural <- function(params, distribution) {

##' Perform checks for `<dist_spec>` `get_...` functions
##'
##' @param x A ``<dist_spec>``.
##' @param x A `<dist_spec>`.
##' @param id Integer; the id of the distribution to get parameters of (if x is
##' a composite distribution). If `x` is a single distribution this is ignored
##' and can be left as `NULL`.
Expand All @@ -1130,7 +1130,7 @@ get_dist_spec_id <- function(x, id) {

##' Get parameters of a parametric distribution
##'
##' @inheritParams check_get_dist_spec
##' @inheritParams get_dist_spec_id
##' @description `r lifecycle::badge("experimental")`
##' @return A list of parameters of the distribution.
##' @export
Expand All @@ -1150,9 +1150,7 @@ get_parameters <- function(x, id = NULL) {

##' Get the probability mass function of a nonparametric distribution
##'
##' @param x A `<dist_spec>`
##' @param id of the distribution to get parameters of (if x is a composite
##' distribution)
##' @inheritParams get_dist_spec_id
##' @description `r lifecycle::badge("experimental")`
##' @return The pmf of the distribution
##' @export
Expand All @@ -1172,9 +1170,7 @@ get_pmf <- function(x, id = NULL) {

##' Get the distribution of a [dist_spec()]
##'
##' @param x A `<dist_spec>`
##' @param id of the distribution to get parameters of (if x is a composite
##' distribution)
##' @inheritParams get_dist_spec_id
##' @description `r lifecycle::badge("experimental")`
##' @return A character string naming the distribution (or "nonparametric")
##' @export
Expand Down
5 changes: 1 addition & 4 deletions man/create_complete_cases.Rd

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

7 changes: 4 additions & 3 deletions man/get_distribution.Rd

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

7 changes: 7 additions & 0 deletions man/get_parameters.Rd

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

7 changes: 4 additions & 3 deletions man/get_pmf.Rd

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

0 comments on commit f7bf38b

Please sign in to comment.