CRAN release: 2023-02-10
- The warning raised if
datefixRis used with a locale which does not accept multibyte characters now only occurs when the package is loaded using
- Fixed a bug where dates with single digit day and double digit year would fail
- Fixed a bug where numeric dates converted from Excel were slightly off (this is because Excel incorrectly regards 1900 as a leap year).
CRAN release: 2023-01-17
Support has been added for parsing dates converted to a numeric format by Excel. Unlike R which converts
Date objects to numeric by calculating the number of days since
1970-01-01, Excel typically converts date cells to numeric cells by calculating the number of days since
datefixR can be told to expect dates converted by Excel instead of R by passing
excel = TRUE to
datefixR 1.3.1, internal functions began to be converted to C++. This process unintentionally led to translations of some user-facing messages not being delivered to users. This bug has now been fixed.
CRAN release: 2022-10-24
CRAN release: 2022-10-17
Tests have been refactored: making it easier for others to contribute their own tests. See #57.
- Now discuss more R packages similar to
- Warnings and errors have been translated to German thanks to Daniel Possenriede (@dpprdan on GitHub)
- Fixes typo in README for the German language (now “Deutsch”)
CRAN release: 2022-09-22
Added much wider support for date formats commonly seen in regions where English is not the first language (de and del, “1er” “le” etc.) .
Months with Portuguese names are now recognized.
“.” and “.’” separators are now supported.
Support has been added for dates with ordinals (“1st”, “2nd”, etc.)
datefixRwill now recognize when a month-first date is given (without needing the
formatargument to be explicitly provided) if the month is given by name e.g “July 4th, 1776”
Thanks to community submissions, error messages and warnings have now been translated to French and Spanish. These messages should automatically be delivered instead of the English language versions based on the locale detected by R.
- French errors/warnings were translated by Jonathan Kitt (@KittJonathan on GitHub)
- Spanish errors/warnings were translated by Antonio J Perez-Luque (@ajpelu on GitHub)
CRAN release: 2022-08-12
This update introduces a Shiny app and support for names of months in Spanish, German, and French.
- New function,
fix_date_app()which produces a shiny app for accessing the features of
datefixR. Please note, the package dependencies for this app (
shiny) are not installed alongside
datefixR. This allows datefixR to be installed on secure systems where these packages may not be allowed. If one of these dependencies is not installed on the system when this function is called, then the user will have the option of installing them.
- Behind the scenes, names for months of the year are now handled differently to allow multilingual support. Spanish, German, and French is currently supported with the option to support additional languages in the future.
- The README now uses an animation from
asciicastto demonstrate the package.
CRAN release: 2022-07-18
For this revision,
datefixR has undergone ropensci peer review which has resulted in substantial changes and improvements to the package. My sincerest thanks to the reviewers, Kaique dos S. Alves and Al-Ahmadgaid B. Asaad, and the editor, Adam H. Sparks.
fix_dates()have been deprecated in favor of
fix_date_df()respectively to make the role of each function clearer. The deprecated functions will continue to work but are not guaranteed to have new features. Users will be gently encouraged to transition to the new functions.
fix_date_char()now supports vectors as well as character objects of length 1. This also means
fix_date_char()can be used with
- An example data frame for using with the package functions,
exampledates, is now provided with the package.
- The package description has been changed to make the purpose of the package clearer.
- Instead of “cleans up”, fix_date_df() is now described as “tidying” a data frame.
- Lack of support for the datetime format has been added to the README file
- The package repository is now owned by the ropensci GitHub organization and all links have been changed accordingly.
CRAN release: 2022-05-03
- Dates with a “sept” / “Sept” abbreviation will now be correctly handled.
- Lint all R files using styler
CRAN release: 2022-02-20
- Update documentation to reflect support for MM/DD/YYYY formats and
CRAN release: 2022-01-03
- Added support for MM/DD/YYYY formats via an optional argument,
CRAN release: 2021-11-30
fix_dates(). If not explicitly stated, the first column is assumed to contain row IDs.
- Added more useful error messages which provide both the date causing the error, and the associated ID.
day.impute = NAor
month.impute = NAwill now result in NA if day or month is missing respectively in a date and a warning is issued. If
day.impute = NULLor
month.impute = NULLthen the function will error if day or month is missing respectively in a date
datefixRvignette which describes the package in more detail than the README
fix_date()for fixing individual dates.
- Added citation file