Description Usage Arguments Value
View source: R/ExtractMetadata.R
This function extracts the metadata from occupancy models run using sparta >= 0.2.06. This then allows filtering based on record number, year gaps and first and last records.
1 | ExtractMetadata(indata = "../data/model_runs/", regions = NULL)
|
indata |
The file path to a location containing .rdata files of the bugs outputs, one for each species. These must have been created with sparta version >= 0.2.06. |
regions |
A vector of region names for which metadata is require
(e.g. |
A data frame containing the metadata for each species for which an output was available.
Species - the name of the species as saved in the model output.
n_obs - the number of observations of the foacl species on which the model is based.
min_year_data - the year of the first observation of the focal species.
max_year_data - the year of the last observation of the focal species.
gap_start - number of consecutive years from the start of the time series that have no observations of the focal species.
gap_end - number of consecutive years from the end of the time series that have no observations of the focal species.
gap_middle - number of consecutive years in the middle (after the first observation but before the last) of the time series with no observations of the focal species.
If regions are provided the same summary information is calculated for each region.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.