load_predictions | R Documentation |
During eBird Status and Trends modeling, predictions are made for checklists
in a test dataset that is not included in the model fitting process. This
function loads these predictions in addition to the actual observed count on
the associated checklist. These data are used by ebirdst_ppms()
for
calculating predictive performance metrics.
load_predictions(path, return_sf = FALSE)
path |
character; directory that the Status and Trends data for a given
species was downloaded to. This path is returned by |
return_sf |
logical; whether to return an sf object of spatial points rather then the default data frame. |
Data frame, or sf object if return_sf = TRUE
, containing
observed counts and model predictions for the test data.
## Not run: # download example data path <- ebirdst_download("example_data", tifs_only = FALSE) # or get the path if you already have the data downloaded path <- get_species_path("example_data") # test data test_predictions <- load_predictions(path) dplyr::glimpse(test_predictions) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.