respecify.spec | R Documentation |
Respecify specification. Updates numeric ranges. Useful if these have changed and spec no longer matches.
## S3 method for class 'spec'
respecify(x, data, file = NULL, ...)
x |
spec |
data |
a data.frame or path to csv file |
file |
where to write the result (default: do not write) |
... |
passed arguments |
Other respecify:
respecify.character()
,
respecify()
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.