Internal function to wrap a zoo object into a time series list.
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
#create zoo object
x <- zoo_simulate()
class(x)
#> [1] "zoo"
#to time series list
tsl <- zoo_to_tsl(
x = x
)
class(tsl)
#> [1] "list"
class(tsl[[1]])
#> [1] "zoo"
names(tsl)
#> [1] "A"
attributes(tsl[[1]])$name
#> [1] "A"
