read_xpt()
fails on misconstructed dates
#747
Labels
bug
an unexpected problem or unintended behavior
read_xpt()
fails on misconstructed dates
#747
Hi,
In some 3rd party-generated XPT files, Dates may be misconstructed, with the number of days being encoded as a string.
This doesn't cause any trouble when using SAS or other software (e.g. https://stattransfer.com/), but it causes instant failure when using {haven}.
Presently, the whole reading process throws an error if one single column is corrupt, while IMHO it should only throw a warning on the column and deliver it raw.
This way one could try to fix the issue manually.
Here is a reprex:
Created on 2023-12-18 with reprex v2.0.2
This issue is related to #536, but with a reprex this time :-)
The text was updated successfully, but these errors were encountered: