powered by
This method reformats a date string for R packages as these can be very heterogenous defined in the DESCRIPTION files of packages.
normalizeDate(d, asDate = TRUE, months = c(jan = "january", feb = "februrary", mar = "march", apr = "april", may = "may", jun = "june", jul = "july", aug = "august", sep = "september", oct = "october", nov = "november", dec = "december"))
(character) The date to be converted.
character
(boolean) Return as R "Date" representation (TRUE) or as character string (FALSE).
boolean
Date
(object) The name of the year's month.
object
(see Parameter asDate) Reformatted date.
asDate
as.Date
# NOT RUN { new_date <- normalizeDate("15.September.2018",FALSE) stopifnot(new_date=="15.09.2018") # }
Run the code above in your browser using DataLab