listNumericIncompatibility: List incompatible values when converted into numeric values.

Description Usage Arguments Details Value See Also Examples

View source: R/listNumericIncompatibility.R

Description

List incompatible values when converted into numeric values.

Usage

1

Arguments

data

a data.frame to search for incomatible values when converted into numeric values

Details

List incompatible values when converted into numeric values. Character or factor variables in data.frame are scanned to check whether the values in it is compatible, and incompatible values are returned as list. This function is intended for check before use of convertFromFactor.

Value

a list which contains incompatible values for each variable in data.frame when converted into numeric variable.

See Also

convertFromFactor, showContents.

Examples

1
2
3
4
5
6
a <- factor(rnorm(5))
b <- c("a", "b", "c", "d", "e")
c <- c("1", "2", "3", "4", NA)
d <- c("1", "2", "3", "4", ".")
dat <- data.frame(a,b,c,d)
listNumericIncompatibility(dat)

epifit documentation built on May 29, 2017, 3:43 p.m.