Learn R Programming

epifit (version 0.1.2)

listNumericIncompatibility: List incompatible values when converted into numeric values.

Description

List incompatible values when converted into numeric values.

Usage

listNumericIncompatibility(data = NULL)

Arguments

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

Value

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

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.

See Also

convertFromFactor, showContents.

Examples

Run this code
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)

Run the code above in your browser using DataLab