You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for clean_Date() not accepting already POSIX or Date input
When using clean_Date(..., guess_each = TRUE) it now accepts the format parameter as a vector of options to let it choose from
clean_Date() and clean_POSIXct gained a parameter max_date (that defaults to today), so that they will never return years beyond a specified date:
# old
clean_Date("23-01-67")
#> [1] "2067-01-23"# new
clean_Date("23-01-67")
#> [1] "1967-01-23"#> Warning: Some years were decreased by 100 to not exceed today.#> Use clean_Date(..., max_date = Inf) to prevent this.
clean_Date("23-01-67", max_date=Inf)
#> [1] "2067-01-23"