seq-nanoival-method: Sequence Generation

Description Usage Arguments Examples

Description

Generate a sequence of nanoival

Usage

1
2
## S4 method for signature 'nanoival'
seq(from, to = NULL, by = NULL, length.out = NULL, along.with = NULL, ...)

Arguments

from, to

the starting and (maximal) end values of the sequence

by

nanoduration or nanoperiod increment of the sequence; note that if the class is nanoperiod the additional argument tz must be speficied and is of character type indicating a timezone

length.out

an integer 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 tz where the to argument is of type nanoperiod

Examples

1
2
3
4
5
## Not run: 
from <- as.nanoival("-2018-01-14T13:00:00+00:00 -> 2018-01-14T15:00:00+00:00+")
seq(from, by=as.nanoperiod("1m"), length.out=5, tz="America/New_York")

## End(Not run)

nanotime documentation built on Aug. 10, 2021, 1:06 a.m.