View source: R/get-observations.R
get_observations | R Documentation |
Query observations end point. In the Ecology API, the most central point of interest are the Observations. Each observation has a single result for a particular Observable Property for a particular Feature of Interest. This API accesses hundreds of thousands of surveys and many millions of observations, this means this endpoint requires at least one filter of site, observable property, observation type or ultimate feature of interest.
get_observations(
site_id = NULL,
take = 500,
skip = 0,
type_id = NULL,
property_id = NULL,
ultimate_foi_id = NULL,
date_from = NULL,
date_to = NULL
)
site_id |
list of sites ids. |
take |
integer max number of returned observations |
skip |
integer number of responses to skip |
type_id |
Observation type |
property_id |
Property type |
ultimate_foi_id |
Ultimate feature of interest |
date_from |
Date string '2020-11-01' |
date_to |
Date string '2021-02-01' |
dataframe
site_id = c("http://environment.data.gov.uk/ecology/site/bio/43378",
"http://environment.data.gov.uk/ecology/site/bio/10254")
obs <- get_observations(site_id, take = 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.