read_rdb: Read USGS RDB file

View source: R/read_rdb.R

read_rdbR Documentation

Read USGS RDB file

Description

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.

Usage

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.

Value

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

Author(s)

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

Examples

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

inldata documentation built on Sept. 12, 2024, 9:34 a.m.