Skip to content

Commit

Permalink
Update R/time-helper.R
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Gravestock <83659704+gravesti@users.noreply.github.com>
  • Loading branch information
MikeJSeo and gravesti committed Jul 23, 2024
1 parent d3d8133 commit 7616b74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/time-helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ get_time_conversion <- function(factor = c("days", "weeks", "months", "years"))
#' @param as A time scale to convert to. One of "days", "weeks", "months", "years"
#'
#' @return Returns a numeric vector calculated from `times / get_time_conversion(factor = as)`
#' @export
#' @examples
#' get_time_as(50, as = "months")
get_time_as <- function(times, as = NULL) {
Expand Down

0 comments on commit 7616b74

Please sign in to comment.