Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to parse dates from long numbers
With as.character(), long numbers with many zeros at the end get converted to scientific notation which the parse of course fails to recognise. Using format(..., scientific = FALSE) prevents that. trim = TRUE is necessary for variable length input. Add tests for these problematic numbers. Tests also check wether the behaviour of as.character() changes but format() outperforms as.character() and may be preferred anyway.
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters