Normalize days in month back to day limit for a given month
Source:R/normalize_month_day.R
normalize_month_day.Rd
Normalize days in month back to day limit for a given month
Examples
x <- as.parttime(c("2019", "2019-02-31", "2019-01-05", "2016-02-31", "2016-01-05"))
parttime:::normalize_month_day(x)
#> <partial_time<YMDhms+tz>[5]>
#> [1] "2019" "2019-02-28" "2019-01-05" "2016-02-29" "2016-01-05"