Learn R Programming

hddtools (version 0.3.0)

catalogueData60UK: Interface for the Data60UK database catalogue

Description

This function interfaces the Data60UK database catalogue (available from http://www.nwl.ac.uk/ih/nrfa/pub/index.html) containing 61 datasets. Dataset catalogue is available from http://www.nwl.ac.uk/ih/nrfa/pub/data.html.

Usage

catalogueData60UK(bbox = NULL, columnName = NULL, columnValue = NULL)

Arguments

bbox
bounding box, a list made of 4 elements: minimum longitude (lonMin), minimum latitude (latMin), maximum longitude (lonMax), maximum latitude (latMax)
columnName
name of the column to filter
columnValue
value to look for in the column named columnName

Value

This function returns a data frame made of 5 columns: "id" (hydrometric reference number), "name", "location", "Latitude", "Longitude" and "area".

Examples

Run this code
## Not run: 
#   # Retrieve the whole catalogue
#   catalogueData60UK()
# 
#   # Define a bounding box
#   bbox <- list(lonMin=-3.82,latMin=52.41,lonMax=-3.63,latMax=52.52)
# 
#   # Filter the catalogue
#   catalogueData60UK(bbox)
#   catalogueData60UK(columnName="id",columnValue="62001")
# ## End(Not run)

Run the code above in your browser using DataLab