Skip to contents

List Observations

Usage

brapi_observations(con, studyDbId = NULL, ...)

Arguments

con

A brapi_connection() object.

studyDbId

Character or NULL. Filter by study.

...

Additional query parameters.

Value

A tibble with one row per observation (trait measurement).

BrAPI endpoint

GET /observations - see the v2.1 specification.

Query parameters the specification defines, which may be passed through ...:

observationDbId, observationUnitDbId, observationVariableDbId, locationDbId, seasonDbId, observationTimeStampRangeStart, observationTimeStampRangeEnd.

Examples

# \donttest{
con <- brapi_connection("https://test-server.brapi.org")
brapi_observations(con, studyDbId = "study1")
#> # A tibble: 0 × 0
# }