as.spec.character: Coerce to Specification from Character

View source: R/spec.R

as.spec.characterR Documentation

Coerce to Specification from Character

Description

Coerces to specification from character (length-one filepath).

Usage

## S3 method for class 'character'
as.spec(x, ...)

Arguments

x

character path to spec-formatted file

...

passed arguments

Value

spec

See Also

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

Examples

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

bergsmat/spec documentation built on Feb. 21, 2024, 1:20 p.m.