Calculates the previous year dates by subtracting one year from the given dates.
Arguments
- dates
a date-time object of class POSIXlt, POSIXct or Date.
- ...
Arguments passed on to
lubridate::add_with_rollback
roll_to_first
rollback to the first day of the month instead of the last day of the previous month (passed to
rollback()
)preserve_hms
retains the same hour, minute, and second information? If FALSE, the new date will be at 00:00:00 (passed to
rollback()
)