rnrfa: An R package to Retrieve, Filter and Visualize Data from the UK National River Flow Archive
Claudia Vitolo, Matthew Fry and Wouter Buytaert
, The R Journal (2016) 8:2, pages 102-116.
Abstract The UK National River Flow Archive (NRFA) stores several types of hydrological data and metadata: daily river flow and catchment rainfall time series, gauging station and catchment informa tion. Data are served through the NRFA web services via experimental RESTful APIs. Obtaining NRFA data can be unwieldy due to complexities in handling HTTP GET requests and parsing responses in JSON and XML formats. The rnrfa package provides a set of functions to programmatically access, filter, and visualize NRFA data using simple R syntax. This paper describes the structure of the rnrfa package, including examples using the main functions gdf() and cmr() for flow and rainfall data, respectively. Visualization examples are also provided with a shiny web application and functions provided in the package. Although this package is regional specific, the general framework and structure could be applied to similar databases.
Received: 2016-01-29; online 2017-01-03@article{RJ-2016-036, author = {Claudia Vitolo and Matthew Fry and Wouter Buytaert}, title = {{rnrfa: An R package to Retrieve, Filter and Visualize Data from the UK National River Flow Archive}}, year = {2016}, journal = {{The R Journal}}, doi = {10.32614/RJ-2016-036}, url = {https://doi.org/10.32614/RJ-2016-036}, pages = {102--116}, volume = {8}, number = {2} }