The vast majority of our data is date time, but the marsFetchBaroData function only accepts dates. Passing a datetime value causes an NA:
|
start_date <- lubridate::ymd(start_date, tz = "America/New_York") |
|
end_date <- lubridate::ymd(end_date, tz = "America/New_York") |
We can first check if they are date or datetime using lubridate::is.timepoint, then choosing ymd or as_date
The vast majority of our data is date time, but the
marsFetchBaroDatafunction only accepts dates. Passing a datetime value causes anNA:pwdgsi/R/mars_data_fetch_write_functions.R
Lines 265 to 266 in f90bd1a
We can first check if they are date or datetime using
lubridate::is.timepoint, then choosingymdoras_date