Learn R Programming

EML (version 2.0.7)

get_numberType: Get EML numberType

Description

returns the EML numberType (either 'real', 'integer', 'whole', or 'natural') of input values

Usage

get_numberType(values)

Value

the numberType of values (either 'real', 'integer', 'whole', or 'natural').

Arguments

values

(numeric/character) a vector of values, if vector is non-numeric will return NA

Examples

Run this code
if (FALSE) {
# To get numberType for each column in a data.frame:

unlist(lapply(df, function(x) get_numberType(x)))
}

Run the code above in your browser using DataLab