read.spec {spec}R Documentation

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, ...)

Arguments

x

character (file path)

clean

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

...

passed arguments (ignored)

Value

spec

See Also

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

Examples

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

[Package spec version 0.1.9 Index]