Learn R Programming

spec (version 0.1.9)

read.spec: Read Specification from File

Description

Reads specification from file. If first line contains tab characters, assumes format is tab-delimited text. Otherwise, assumes format is comma-separated variable (csv).

Usage

read.spec(x, clean = TRUE, ...)

Value

spec

Arguments

x

character (file path)

clean

whether to strip balanced double quotes and outer white space from character values

...

passed arguments (ignored)

See Also

Other as.spec: as.spec.character(), as.spec.data.frame(), as.spec(), write.spec()

Examples

Run this code
data(drug)
file <- tempfile()
spec <- specification(drug, tol = 3)
write.spec(spec, file = file)
read.spec(file)

Run the code above in your browser using DataLab