load_test_data: Test data loader

Description Usage Arguments Value Examples

View source: R/ebirdst-loading.R

Description

Internal function used by compute_ppms() to get the full test data set for calculating predictive performance metrics. This file contains the observed counts and all predictor variables used for modeling for each checklist in the test dataset.

Usage

1
load_test_data(path, return_sf = FALSE)

Arguments

path

character; full path to the directory containing single species eBird Status and Trends products.

return_sf

logical; whether to return an sf object of spatial points rather then the default data frame.

Value

data.frame containing test data, including checklist locations, observed counts, and predictor variables.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# download example data
sp_path <- ebirdst_download("example_data", tifs_only = FALSE)

# test data
test_data <- ebirdst:::load_test_data(sp_path)
dplyr::glimpse(test_data)

## End(Not run)

ebirdst documentation built on Jan. 16, 2021, 5:16 p.m.