Skip to content

Commit

Permalink
More methods for int64.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicChr committed Sep 21, 2024
1 parent 0947476 commit fbacf59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Generated by roxygen2: do not edit by hand

S3method(base::as.character,vctrs_rcrd)
S3method(collapse::fmax,integer64)
S3method(collapse::fmean,integer64)
S3method(collapse::fmedian,integer64)
S3method(collapse::fmin,integer64)
S3method(collapse::fnobs,integer64)
S3method(collapse::fnth,integer64)
S3method(collapse::fsd,integer64)
Expand Down
10 changes: 10 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ funique.POSIXlt <- function(x, sort = FALSE, ...){
out
}

# collapse methods for integer64

#' @exportS3Method collapse::fmin
fmin.integer64 <- function(x, ...){
collapse::fmin(cpp_int64_to_double(x), ...)
}
#' @exportS3Method collapse::fmax
fmax.integer64 <- function(x, ...){
collapse::fmax(cpp_int64_to_double(x), ...)
}
#' @exportS3Method collapse::fmean
fmean.integer64 <- function(x, ...){
collapse::fmean(cpp_int64_to_double(x), ...)
Expand Down

0 comments on commit fbacf59

Please sign in to comment.