Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

asClassyList

Convert a vector into a list of objects with the same class


Description

Turns its argument into a list of elements with the same class as the argument.

Usage

asClassyList(x, ...)

Arguments

x

object to be coerced or tested.

...

objects, possibly named.

Value

A list L of one-element vectors with L[[i]] == x[i] for i in 1:length(x)

Note

The implementation of this function is identical to as.list.factor. It is used in as.list.ti and as.list.jul.

See Also

Examples

asClassyList(today() + 1:5)

tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.