Skip to content

Commit

Permalink
domain for log1p
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Nov 1, 2023
1 parent 1ae51df commit 5d0a5d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/trans-numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ log2_trans <- function() {
#' @rdname log_trans
#' @export
log1p_trans <- function() {
trans_new("log1p", "log1p", "expm1")
trans_new(
"log1p", "log1p", "expm1",
domain = c(-1 + .Machine$double.eps, Inf)
)
}

#' @rdname log_trans
Expand Down

0 comments on commit 5d0a5d9

Please sign in to comment.