Assigning Dates to Fiscal Year
Here are some alternatives. They all return numeric years but if you really need a string starting with FY then use paste0(“FY”, result) where result is any of the results below. They all support vector input, i.e. the input dates can be a vector. 1) zoo::as.yearmon The zoo package has a “yearmon” class which represents … Read more