seq.nanotime | R Documentation |
Generate a sequence of nanotime
## S3 method for class 'nanotime'
seq(from, to = NULL, by = NULL, length.out = NULL, along.with = NULL, ...)
## S4 method for signature 'nanotime'
seq(from, to = NULL, by = NULL, length.out = NULL, along.with = NULL, ...)
from , to |
the starting and (maximal) end values of the sequence |
by |
|
length.out |
integer indicating the desired length of the sequence |
along.with |
take the length from the length of this argument. |
... |
arguments passed to or from methods; the only
interesting additional argument is |
## Not run:
from <- as.nanotime("2018-01-14T12:44:00+00:00")
to <- as.nanotime("2019-01-14T12:44:00+00:00")
seq(from, to, by=as.nanoperiod("1m"), tz="America/New_York")
seq(from, by=as.nanoperiod("1y"), length.out=4, tz="Europe/London")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.