get_numberType: Get EML numberType

View source: R/shiny_attributes.R

get_numberTypeR Documentation

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

## Not run: 
# To get numberType for each column in a data.frame:

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

## End(Not run)

ropensci/EML documentation built on June 11, 2022, 10:32 a.m.