operate | R Documentation |
These operations allow users to add or subtract dates messydate objects. Messydate objects include incomplete or uncertain dates, ranges of dates, negative dates, and date sets.
## S3 method for class 'mdate' e1 + e2 ## S3 method for class 'mdate' e1 - e2
e1 |
A messydate object |
e2 |
A numerical object. |
A messydates vector
d <- as_messydate(c("2008-03-25", "-2012-02-27", "2001-01?", "~2001", "2001-01-01..2001-02-02", "{2001-01-01,2001-02-02}", "2008-XX-31", "..2002-02-03", "2001-01-03..", "28 BC")) tibble::tibble(date = d, add = d + 1, subtract = d - 1) tibble::tibble(date = d, add = d + "1 year", subtract = d - "1 year")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.