R/fy.R

Defines functions fy

Documented in fy

#' Calculate the MU fiscal year
#' 
#' @description calculates the fiscal year based on an existing date
#'
#' @param x a date-time object
#'
#' @return a numeric value of fiscal lyears
#' @export
#'
fy  <- function(x) {
  
  ifelse(lubridate::month(x) >= 7, year(x) +1, year(x) )
    
}
crazybilly/ucbudar documentation built on July 15, 2024, 5:03 p.m.