as.data.frame,confrontation-method {validate} | R Documentation |
Coerce a confrontation object to data frame
Description
Results of confronting data with validation rules or indicators
are created by a confront
ation. The result is an
object (inheriting from) confrontation
.
Usage
## S4 method for signature 'confrontation'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
Arguments
x |
Object to coerce |
row.names |
ignored |
optional |
ignored |
... |
arguments passed to other methods |
Value
A data.frame
with columns
key
Where relevant, and only ifkey
was specified in the call toconfront
name
Name of the rulevalue
Value after evaluationexpression
evaluated expression
See Also
Other confrontation-methods:
[,expressionset-method
,
confront()
,
confrontation-class
,
errors()
,
event()
,
keyset()
,
length,expressionset-method
,
values()
Examples
cf <- check_that(women, height > 0, sd(weight) > 0)
as.data.frame(cf)
# add id-column
women$id <- letters[1:15]
i <- indicator(mw = mean(weight), ratio = weight/height)
as.data.frame(confront(women, i, key="id"))
[Package validate version 1.1.5 Index]