tsl: (required, list) Time series list. Default: NULL
names: (optional, character or numeric vector) Character vector of names or numeric vector with list indices. If NULL, all time series are kept. Default: NULL
colnames: (optional, character vector) Column names of the zoo objects in tsl. If NULL, all columns are returned. Default: NULL
time: (optional, numeric vector) time vector of length two used to subset rows by time. If NULL, all rows in tsl are preserved. Default: NULL
numeric_cols: (optional, logical) If TRUE, only the numeric columns of the zoo objects are returned. Default: TRUE
shared_cols: (optional, logical) If TRUE, only columns shared across all zoo objects are returned. Default: TRUE
Returns
time series list
Examples
#initialize time series listtsl <- tsl_initialize( x = fagus_dynamics, name_column ="name", time_column ="time")#checking available dimensions#namestsl_names_get( tsl = tsl
)#colnamestsl_colnames_get( tsl = tsl
)#timetsl_time( tsl = tsl
)[, c("name","begin","end")]#subsettsl_new <- tsl_subset( tsl = tsl, names = c("Sweden","Germany"), colnames = c("rainfall","temperature"), time = c("2010-01-01","2015-01-01"))#check new dimensions#namestsl_names_get( tsl = tsl_new
)#colnamestsl_colnames_get( tsl = tsl_new
)#timetsl_time( tsl = tsl_new
)[, c("name","begin","end")]