get_data: Get data

View source: R/get-data.R

get_dataR Documentation

Get data

Description

Import data from web services and convert into standard format for 'hera' regulatory assessment tool.

Usage

get_data(
  location_id = NULL,
  take = 10000,
  date_from = NULL,
  date_to = NULL,
  dataset = "analytical_results",
  year = NULL,
  water_body_id = "",
  source = "sepa"
)

Arguments

location_id

Unique ID of location.

take

Number of observation to download. For "ea" API services.

date_from

Start of date taken window in string format: "2013-12-31".

date_to

End of date taken window in string format: "2015-12-31".

dataset

Default will get Ecology monitoring data, set to "replocs" to represent location data for SEPA

year

Classification year

water_body_id

Water body ID used for replocs table queries.

source

Which data source, either "ea" or "sepa". SEPA is internal access only.

Value

Data frame

Examples

## Not run: 
data <- get_data(location_id = 1000, source = "ea")
class <- assessment(data)

## End(Not run)

ecodata1/hera documentation built on April 5, 2025, 1:48 a.m.