get_observations: Get Observations

View source: R/get-observations.R

get_observationsR Documentation

Get Observations

Description

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.

Usage

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
)

Arguments

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'

Value

dataframe

Examples

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)

aquaMetrics/eadata documentation built on April 26, 2023, 4:40 p.m.