Create an Overview data.table of (last) observations
Source:R/create_cross_sec_overview.R
create_cross_sec_overview.Rd
Create a data.table that shows the i-th obsersvation of several time series.
Arguments
- list_of_rows
list of time series names
- col_labels
character list of column labels
- tsl
list of time series object to select from
- selected_period
numeric date as in defining ts objects.
Examples
tsl <- generate_random_ts(10, lengths = 20)
list_of_rows <- list(
"group 1" = c("ts1", "ts2", "ts3", "ts4"),
"group 2" = c("ts5", "ts6", "ts7", "ts10")
)
# These are no real +,=,- values just random data.
create_cross_sec_overview(
list_of_rows,
c("+", "=", "-", "random"),
tsl, c(1988, 12)
)
#> Column 1 ['ts5'] of item 2 is missing in item 1. Use fill=TRUE to fill with NA (NULL for list columns), or use.names=FALSE to ignore column names. use.names='check' (default from v1.12.2) emits this message and proceeds as if use.names=FALSE for backwards compatibility. See news item 5 in v1.12.2 for options to control this message.
#> + = - random
#> 1: group 1 0.2276945 -0.04072107 -0.7852797 0.2388000
#> 2: group 2 0.9999312 0.12362805 -0.6986393 0.2755783