EML (version 2.0.4)

get_numberType: Get EML numberType

Description

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

Usage

get_numberType(values)

Arguments

values

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

Value

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

Examples

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