checkImprecision: Imprecise Imputation

Description Usage Arguments Value Note See Also Examples

Description

Check whether the variables of a data frame contain imprecise observations

Usage

1

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

impimp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

impimp documentation built on May 1, 2019, 10:13 p.m.