View source: R/extendr-wrappers.R
edate | R Documentation |
Calculate the date before / after months
edate(ref_date, months)
ref_date |
a Date vector |
months |
the number of months that's added to |
The function name is the same as the Excel function EDATE()
and
does the same. It returns the date that is the indicated number of months
before or after the ref date.
edate(as.Date("2020-01-31"), 1)
## supports 'YMD' formatted integer or string
edate(200131, 1)
edate(200229, -12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.