Transform Time Series List to Data Frame
See also
Other tsl_management:
tsl_burst()
,
tsl_colnames_clean()
,
tsl_colnames_get()
,
tsl_colnames_prefix()
,
tsl_colnames_set()
,
tsl_colnames_suffix()
,
tsl_count_NA()
,
tsl_diagnose()
,
tsl_handle_NA()
,
tsl_join()
,
tsl_names_clean()
,
tsl_names_get()
,
tsl_names_set()
,
tsl_names_test()
,
tsl_ncol()
,
tsl_nrow()
,
tsl_repair()
,
tsl_subset()
,
tsl_time()
,
tsl_time_class_set()
Examples
tsl <- tsl_simulate(
n = 3,
rows = 10,
time_range = c(
"2010-01-01",
"2020-01-01"
),
irregular = FALSE
)
df <- tsl_to_df(
tsl = tsl
)
names(df)
#> [1] "name" "time" "a" "b" "c" "d" "e"
nrow(df)
#> [1] 30
head(df)
#> name time a b c d e
#> 1 A 2010-01-01 0.6483628 0.7831815 0.4866803 0.2781007 0.2683083
#> 2 A 2011-02-10 0.7399346 0.5136750 0.2906201 0.1122752 0.2717345
#> 3 A 2012-03-22 0.5388278 0.2823126 0.3124173 0.2180673 0.4475555
#> 4 A 2013-05-02 0.5547488 0.8221867 0.5414729 0.3608414 0.4379729
#> 5 A 2014-06-12 0.4197383 0.5163697 0.5307591 0.3527211 0.4252819
#> 6 A 2015-07-22 0.3085833 0.4314279 0.6188772 0.2496101 0.4569708