Determine the datatype of a vector
Value
Returns generic datatypes of R basic vectors according to the following mapping:
logicalreturns 'binary'numericvalues (e.g.,integeranddouble) return 'numeric'However, if the only values of numeric are 0 and 1, then it returns 'binary'
unordered
factorreturns 'categorical'orderedfactorreturns 'ordinal'
