View source: R/npn_data_download.R
npn_get_data | R Documentation |
Generic utility function for querying data from the NPN data services.
npn_get_data(
endpoint,
query,
download_path = NULL,
always_append = FALSE,
six_leaf_raster = NULL,
six_bloom_raster = NULL,
agdd_layer = NULL,
additional_layers = NULL
)
endpoint |
The endpoint to request data from starting at
'https://services.usanpn.org/npn_portal/'. E.g.
|
download_path |
String, optional file path to the file for which to output the results. |
always_append |
Boolean flag. When set to |
A tibble of the requested data. If a download_path
was specified,
the file path is returned.
## Not run:
npn_get_data(
endpoint = "observations/getObservations.ndjson",
query = list(
request_src = "Unit Test",
climate_data = "0",
`species_id[1]` = "6",
start_date = "2010-01-01",
end_date = "2010-12-31"
)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.