Closed yongrenjie closed 6 months ago
lubridate::ymd()
returns NA
for anything that isn't in YYMMDD
or YYYYMMDD
format (hyphens are ok), so it suffices to run that on every column to check if there are any NAs, and if there aren't, convert that column.
presumably dates are passed in as strings after being read from csv (raw tables) and/or json (feature spec)
do we try to use heuristics to detect when some string is a date and then compare it properly? or does string comparison suffice (feels iffy--- that only works if dates are in YYYYMMDD format)