convert_sequence {messydates} | R Documentation |
Sequence method for messydates
Description
This function provides a sequence (seq()
) method for messydates.
This can be used with ranges or unspecified dates,
and is particularly useful for defining a sequence of dates
before the common era or between eras.
Usage
## S3 method for class 'mdate'
seq(from, to, by = "days", ...)
Arguments
from |
A messydate or range. If 'from' is a range and 'to' is not specified, 'from' will be the minimum of the range and 'to' will be maximum. |
to |
A messydate. |
by |
Increment of the sequence. By default "days". |
... |
Arguments passed to or from methods. |
Examples
seq(mdate("-0001-12-20"), mdate("0001-01-10"))
[Package messydates version 0.5.4 Index]