read_rdb function

Read USGS RDB file

Read USGS RDB file

Reads a RDB (Relational Database) file in table format and creates a data frame from it. The USGS (U.S. Geological Survey) RDB file is a variant of a tab-delimited ASCII file structure.

read_rdb(file, na_strings = "")

Arguments

  • file: 'character' string. Path to file which the data are to be read from.
  • na_strings: 'character' vector. Strings which are interpreted as NA values.

Returns

A data frame containing a representation of the data in the file.

Examples

file <- system.file("extdata", "test.rdb", package = "inldata") d <- read_rdb(file) str(d)

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center