You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date columns are somewhat problematic than they should be. Several challenges exist here:
the R user may represent dates as almost any type: integer, numeric, character, factor, or Date. So detecting the format based on the column class isn't reliable. (there may be good reasons of course to treat date as a factor for a given statistical test or plot, etc)
R's Date type insists on a fully specified date-time object. So if a user has separate columns for year and day, we can't treat each as an date column independently.
EML's date format does't use the ISO C99 / POSIX standard for strftime, for instance Julian days might be specified using the less explicit format string DDD rather than %j.
current automated handling of dates based on column types can result in incorrect EML (see Advanced writing example). Typing these as characters and explicitly declaring it as a date in the unit metadata.
The text was updated successfully, but these errors were encountered:
Yup, right. Meanwhile there's a good ecosystem for dealing with dates in general; e.g. readr package read_csv() does a much better job reading in dates, and lubridate for manipulating them. But now that we're just focused on the metadata representation we aren't assuming the actual data table is even read into R anyway, so like you say these issues are now beyond the scope here.
Date columns are somewhat problematic than they should be. Several challenges exist here:
strftime
, for instance Julian days might be specified using the less explicit format stringDDD
rather than%j
.current automated handling of dates based on column types can result in incorrect EML (see Advanced writing example). Typing these as characters and explicitly declaring it as a date in the unit metadata.
The text was updated successfully, but these errors were encountered: