Learn R Programming

UKFE (version 0.3.5)

CDsXML: Import catchment descriptors from .xml files

Description

Imports catchment descriptors from xml files either from an FEH webservice download or from the Peakflows dataset downloaded from the national river flow archive (NRFA) website

Usage

CDsXML(x)

Value

A data.frame with columns; Descriptor and Value.

Arguments

x

the xml file path

Author

Anthony Hammond

Details

File paths for importing data require forward slashes. On some operating systems, such as windows, the copy and pasted file paths will have backward slashes and would need to be changed accordingly.

Examples

Run this code
#Import catchment descriptors from a NRFA peakflows xml file and display in console
if (FALSE) CDs.4003 <- CDsXML("C:/Data/NRFAPeakFlow_v11/Suitable for QMED/4003.xml")
if (FALSE) CDs.4003
#Import catchment descriptors from a FEH webserver xml file and display xml in the console
if (FALSE) CDs.MySite <- CDsXML("C:/Data/FEH_Catchment_384200_458200.xml")

Run the code above in your browser using DataLab