| getInDays | R Documentation |
Turns calendar dates written as yyyymmdd into whole days since
1970-01-01, which is the scale the engine works on. This is how you usually
bring dates into a MicSim model.
getInDays(yyyymmdd)
yyyymmdd |
A vector of dates as |
Accepts numeric, character, factor or Date input. An input that is
not a real calendar date (for example 20210229, which is not a leap
year) becomes NA.
Validity is checked by inversion. The date is turned into a day count and back again. When that round trip returns the original date, the date is valid.
Integer vector of days since 1970-01-01, negative before it, and
NA for any input that is not a real calendar date.
getInDateFormat() for the inverse.
getInDays(20200826)
getInDays(20210229) # not a real date: NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.