read.rdf: Read an rdf file into R.

Description Usage Arguments Details Value Functions Examples

View source: R/read_rdf.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

1
2
3
4
5
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

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

RWDataPlyr documentation built on April 17, 2020, 9:06 a.m.