powered by
getType
getType(vec)
A vector of any choice, to detect between numeric or character
type of the given vector
# NOT RUN { getType(iris$Species) getType(as.factor(c(1,0,1,1,0,NA,1, NULL))) getType(as.factor(c(1, NULL,0,1,1,0,1,'a'))) getType(c(1,2,3,4, NA)) getType(letters[1:4]) # }
Run the code above in your browser using DataLab