TRUE iff the type string is a certain type, e.g. isIntegerTypeString checks if we have “integer” or “integervector”, and isVectorTypeString check if we have “*vector”.

isNumericTypeString(type, include.int = TRUE)

isIntegerTypeString(type)

isCharacterTypeString(type)

isDiscreteTypeString(type, include.logical = TRUE)

isLogicalTypeString(type)

isVectorTypeString(type)

Arguments

type

(character(1))
Type string.

include.int

(logical(1))
Are integers also considered to be numeric? Default is TRUE.

include.logical

(logical(1))
Are logicals also considered to be discrete? Default is TRUE.

Value

(logical(1))