Section 6 R Atomic Class

6.1 R Atomic Class

Class Concept Example
integer Integer 1L, -5L
double Double 1.0, 3.14, 5.3E-12, 22/7
character Character 'a', 'A', 'Sam', 'David', '1', 'one'
logical Logical a <- 3 > 4, T/F, TRUE/FALSE
complex Complex 3 + 4i
raw Raw raw(5)

6.2 Examples

x <- 100L
y <- 3.4
z <- x*y
m <- "Ten"
n <- "10"
a <- 3 > 4
b <- 'apple' > 'orange'
d <- F > T
e <- TRUE > FALSE