datefixR: Standardize Dates in Different Formats or with Missing Data (original) (raw)

There are many different formats dates are commonly represented with: the order of day, month, or year can differ, different separators ("-", "/", or whitespace) can be used, months can be numerical, names, or abbreviations and year given as two digits or four. 'datefixR' takes dates in all these different formats and converts them to R's built-in date class. If 'datefixR' cannot standardize a date, such as because it is too malformed, then the user is told which date cannot be standardized and the corresponding ID for the row. 'datefixR' also allows the imputation of missing days and months with user-controlled behavior.

Version: 2.0.0
Depends: R (≥ 4.2)
Imports: lifecycle, rlang
Suggests: DT, future, future.apply, htmltools, knitr, parsedate, pkgbuild, png, readr, readxl, rmarkdown, shiny, shinytest2, spelling, testthat (≥ 3.0.0), withr
Published: 2025-08-22
DOI: 10.32614/CRAN.package.datefixR
Author: Nathan Constantine-CookeORCID iD [aut, cre], Jonathan Kitt [ctb, trl], Antonio J. Pérez-LuqueORCID iD [ctb, trl], Daniel PossenriedeORCID iD [ctb, trl], Michal Lauer [ctb, trl], Kaique dos S. AlvesORCID iD [rev], Al-Ahmadgaid B. AsaadORCID iD [rev], Anatoly TsyplenkovORCID iD [ctb, trl], Chitra M. SaraswatiORCID iD [ctb, trl]
Maintainer: Nathan Constantine-Cooke <nathan.constantine-cooke at ed.ac.uk>
BugReports: https://github.com/ropensci/datefixR/issues
License: GPL (≥ 3)
URL: https://docs.ropensci.org/datefixR/,https://github.com/ropensci/datefixR
NeedsCompilation: yes
SystemRequirements: Cargo (Rust's package manager), rustc
Language: en-US
Citation: datefixR citation info
Materials: README, NEWS
CRAN checks: datefixR results

Documentation:

Downloads:

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=datefixRto link to this page.