Learn R Programming

distantia (version 2.0.2)

zoo_to_tsl: Convert Individual Zoo Objects to Time Series List

Description

Internal function to wrap a zoo object into a time series list.

Usage

zoo_to_tsl(x = NULL)

Value

time series list of length one.

Arguments

x

(required, zoo object) Time series. Default: NULL

See Also

Other zoo_functions: zoo_aggregate(), zoo_name_clean(), zoo_name_get(), zoo_name_set(), zoo_permute(), zoo_plot(), zoo_resample(), zoo_smooth_exponential(), zoo_smooth_window(), zoo_time(), zoo_vector_to_matrix()

Examples

Run this code
#create zoo object
x <- zoo_simulate()
class(x)

#to time series list
tsl <- zoo_to_tsl(
  x = x
)

class(tsl)
class(tsl[[1]])
names(tsl)
attributes(tsl[[1]])$name

Run the code above in your browser using DataLab