respecify.spec: Respecify Specification

Description Usage Arguments See Also Examples

Description

Respecify specification. Updates numeric ranges. Useful if these have changed and spec no longer matches.

Usage

1
2
## S3 method for class 'spec'
respecify(x, data, file = NULL, ...)

Arguments

x

spec

data

a data.frame or path to csv file

file

where to write the result (default: do not write)

...

passed arguments

See Also

Other respecify: respecify.character, respecify

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(drug)
file <- tempfile()
spec <- specification(drug,tol = 3)
write.spec(spec, file = file)
drug \%matches\% spec
drug \%matches\% file
max <- max(drug$DV,na.rm=TRUE)
drug$DV[!is.na(drug$DV) & drug$DV == max] <- max + 1
drug \%matches\% file
respecify(file, drug)
drug \%matches\% file

spec documentation built on May 2, 2019, 10:14 a.m.

Related to respecify.spec in spec...