impimp (version 0.3.1)

checkImprecision: 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.

See Also

impimp

Examples

Run this code
# NOT RUN {
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)

# }
# NOT RUN {
data(iris)
checkImprecision(iris) # emits a warning
# }

Run the code above in your browser using DataCamp Workspace