checkImprecision {impimp} | R Documentation |
Imprecise Imputation
Description
Check whether the variables of a data frame contain imprecise observations
Usage
checkImprecision(data)
Arguments
data |
data.frame to test to apply the check onto. |
Value
A named logical vector of length ncol(data)
,
where TRUE
indicates that "|"
is present in the
values, which is used to indicate an imprecise observations.
Note
This check is only reliabe for data
, inheriting
class "impimp"
. If data
does not inherit class
"impimp"
, the check is tried, but additionaly the
user is notified with a warning.
See Also
Examples
A <- data.frame(x1 = c(1,0), x2 = c(0,0),
y1 = c(1,0), y2 = c(2,2))
B <- data.frame(x1 = c(1,1,0), x2 = c(0,0,0),
z1 = c(0,1,1), z2 = c(0,1,2))
AimpB <- impimp(A, B, method = "variable_wise")
BimpA <- impimp(B, A, method = "variable_wise")
AB <- rbindimpimp(AimpB, BimpA)
checkImprecision(AB)
data(iris)
checkImprecision(iris) # emits a warning
[Package impimp version 0.3.1 Index]