powered by
getType
getType(vec)
type of the given vector
A vector of any choice, to detect between numeric or character
Jayachandra N
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