Run »
# numeric x <- 10.5 class(x) # integer x <- 1000L class(x) # complex x <- 9i + 3 class(x) # character/string x <- "R is exciting" class(x) # logical x <- TRUE class(x)
[1] "numeric"
[1] "integer"
[1] "complex"
[1] "character"
[1] "logical"