read.rdf {RWDataPlyr}R Documentation

Read an rdf file into R.

Description

read.rdf() reads an rdf file into R and formats it as a multi-level list containing all of the metadata included in the rdf file. rdf files are generated by RiverWare and are documented in the RiverWare documentation.

Usage

read.rdf(iFile, rdf = TRUE)

read.rdf2(iFile)

read_rdf(iFile, rdf = TRUE)

Arguments

iFile

The input rdf file that will be read into R.

rdf

Boolean; if TRUE, then an rdf object is returned. If FALSE, then a character vector is returned.

Details

read.rdf()uses data.table::fread() to read in the file, which provides performance benefits as compared to earlier versions of the function.

read.rdf2() is deprecated and will be removed in a future release.

Value

An rdf object or character vector.

Functions

Examples

zz <- read_rdf(system.file(
  'extdata/Scenario/ISM1988_2014,2007Dems,IG,Most', 
  "KeySlots.rdf", 
  package = "RWDataPlyr"
))


[Package RWDataPlyr version 0.6.4 Index]