Learn R Programming

tis (version 1.23)

as.list.ti: Construct a List from a Time Index or Jul Object

Description

as.list.ti creates a list of one-element ti objects from the elements of its arguments. as.list.jul creates a list of one-element jul objects from the elements of its arguments.

Usage

## S3 method for class 'ti':
as.list(x, \dots)
## S3 method for class 'jul':
as.list(x, \dots)

Arguments

x
a ti or jul object
...
not used

Value

  • a list of one-element ti or jul objects.

Details

These are the ti and jul methods for the generic as.list.

See Also

asClassyList, as.list

Examples

Run this code
as.list(today() + 1:5)
as.list(jul(today()) + 1:5)

Run the code above in your browser using DataLab