weecology / MATSS-forecasting

Forecasting Analysis Comparison for Ecological Time Series
https://weecology.github.io/MATSS-forecasting/
Other
5 stars 1 forks source link

Add check for NULL colnames in `analysis_wrapper()` #6

Closed ha0ye closed 5 years ago

ha0ye commented 5 years ago

Since analysis_wrapper() is applying an analysis function each time series in a dataset, we want to keep track of where each result came from. Currently, we use the colnames of the dataset as an identifier, but we should make sure we have a backup if that is missing.

ha0ye commented 5 years ago

Actually not an issue, since we set a .id for purrr::map_dfr, and:

the help says:

.id Either a string or NULL. If a string, the output will contain a variable with that name, storing either the name (if .x is named) or the index (if .x is unnamed) of the input.