#integer
a <- 5L
typeof(a)
## [1] "integer"
#complex
b <- 3+2i
typeof(b)
## [1] "complex"
#chracter
c <- "william"
typeof(c)
## [1] "character"
d <- 4.7
typeof(d)
## [1] "double"
#logical
e <- T
typeof(e)
## [1] "logical"
#loical
f <- FALSE
typeof(f)
## [1] "logical"