uk {RivRetrieve}R Documentation

uk

Description

Retrieve UK gauge data

Usage

uk(site, variable, start_date = NULL, end_date = NULL, sites = FALSE, ...)

Arguments

site

UK gauge number

variable

Character. Either stage or discharge.

start_date

Character. Optional start date with format YYYY-MM-DD. Default is 1900-01-01.

end_date

Character. End date with format YYYY-MM-DD. Default is the current date.

sites

Logical. If TRUE, returns a list of measurement sites.

...

Additional arguments. None implemented.

Value

data frame of discharge time-series

Examples


site <- "http://environment.data.gov.uk/hydrology/id/stations/3c5cba29-2321-4289-a1fd-c355e135f4cb"
x <- uk(site, variable = "discharge")
plot(x$Date, x$Q, type='l')


[Package RivRetrieve version 0.1.5 Index]