RWDataPlyr (version 0.6.2)

read.rdf: 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.

Value

An rdf object or character vector.

Functions

  • read.rdf2: Deprecated version of read.rdf()

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.

Examples

Run this code
# NOT RUN {
zz <- read_rdf(system.file(
  'extdata/Scenario/ISM1988_2014,2007Dems,IG,Most', 
  "KeySlots.rdf", 
  package = "RWDataPlyr"
))

# }

Run the code above in your browser using DataCamp Workspace