Skip to content

Commit

Permalink
Merge pull request #699 from epiforecasts/update-log_shift
Browse files Browse the repository at this point in the history
Update documentation of `log_shift()`
  • Loading branch information
nikosbosse authored Mar 7, 2024
2 parents 1aa1b5f + a65e9a6 commit 8448015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/convenience-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ transform_forecasts <- function(data,
#' @param x vector of input values to be transformed
#' @param offset number to add to the input value before taking the natural
#' logarithm
#' @param base a positive or complex number: the base with respect to which
#' @param base a positive number: the base with respect to which
#' logarithms are computed. Defaults to e = exp(1).
#' @importFrom cli cli_abort cli_warn
#' @return A numeric vector with transformed values
Expand Down Expand Up @@ -207,7 +207,7 @@ log_shift <- function(x, offset = 0, base = exp(1)) {

assert_numeric(x, min.len = 1)
assert_number(offset)
assert_number(base)
assert_number(base, lower = 0)

if (any(x < 0, na.rm = TRUE)) {
#nolint start: keyword_quote_linter
Expand Down
2 changes: 1 addition & 1 deletion man/log_shift.Rd

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

0 comments on commit 8448015

Please sign in to comment.