GetNRFA {UKFE} | R Documentation |
Extracts NRFA data using the API.
GetNRFA(ID, Type = "Q")
ID |
ID number of the gauge of interest. |
Type |
Type of data required. One of "Q", "P", "PQ", "Gaugings", or "AMAX". |
The function can be used to get daily catchment rainfall or mean flow, or both together (concurrent). It can also be used to get gaugings and amax data. Note that the latter has rejected years included (check the gauge on the associated NRFA web page for details).
A data.frame with date in the first columns and variable/s of interest in the remaining column/s.
Anthony Hammond
#Get the concurrent rainfall and mean flow series for the Tay at Ballathie (site 15006).
## Not run: BallathiePQ <- GetNRFA(15006, "PQ")
#Now we'll get the gaugings
## Not run: BallathieGaugings <- GetNRFA(15006, "Gaugings")