Fundamentals6 / 12
Up next

Basic types

# R has numeric, character and logical types
n <- 3.14
s <- "hello"
flag <- TRUE
# class() reports the type
print(class(n))
print(class(s))
print(class(flag))
What you're solving

numeric, character, logical and class()