Set Column Names in Time Series Lists
See also
Other tsl_management:
tsl_burst()
,
tsl_colnames_clean()
,
tsl_colnames_get()
,
tsl_colnames_prefix()
,
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()
,
tsl_to_df()
Examples
tsl <- tsl_simulate(
cols = 3
)
tsl_colnames_get(
tsl = tsl
)
#> $A
#> [1] "a" "b" "c"
#>
#> $B
#> [1] "a" "b" "c"
#>
#using a vector
#extra names are ignored
tsl <- tsl_colnames_set(
tsl = tsl,
names = c("x", "y", "z", "zz")
)
tsl_colnames_get(
tsl = tsl
)
#> $A
#> [1] "x" "y" "z"
#>
#> $B
#> [1] "x" "y" "z"
#>
#using a list
#extra names are ignored too
tsl <- tsl_colnames_set(
tsl = tsl,
names = list(
A = c("A", "B", "C"),
B = c("X", "Y", "Z", "ZZ")
)
)
tsl_colnames_get(
tsl = tsl
)
#> $A
#> [1] "A" "B" "C"
#>
#> $B
#> [1] "X" "Y" "Z"
#>