Wrapper for subset_data_one to create a list of all data subsets using one timestep of test data per subset and a buffer on either side.

subset_data_all(full_dataset, buffer_size = 2)

Arguments

full_dataset

MATSS-style dataset. A list with elements $abundance, $covariates

buffer_size

number of timesteps to withhold on either side of the test timestep. Defaults 2.

Value

a list of ntimesteps lists, if ntimesteps is the number of timesteps in full_dataset. Each list in the list is the output of subset_data_one using one of the timesteps in the full dataset as the test timestep.