Modified from https://github.com/weecology/bbs-forecasting and https://github.com/weecology/MATSS-community-change.
Selects sites with data spanning start_yr through end_yr containing at
least min_num_yrs of data samples during that period. Cleans data tables
and stores each individual route as a .RDS file. Saves a data table of the
route + region pairs.
prepare_bbs_ts_data( start_yr = 1965, end_yr = 2018, min_num_yrs = 10, path = get_default_data_path(), data_subset = NULL )
| start_yr | num first year of time-series |
|---|---|
| end_yr | num last year of time-series |
| min_num_yrs | num minimum number of years of data between start_yr & end_yr |
| path | where to load the raw data files from |
| data_subset | optional, a subset of the BBS communities to use (to speed up development). As c(1:X) |