R<- assignment operator to assign a name.answer <- 42
msg <- "Hello World!"
answer## [1] 42
msg## [1] "Hello World!"
x <- 2
y <- 4
x + y## [1] 6
x * y## [1] 8
x / y## [1] 0.5
c():name <- c("Danny", "Esther", "Karen", "Kariem")
age <- c(35, 33, 32, 41)
sex <- c("M", "F", "F", "M")
height <- c(183, 160, 155, 178)
weight <- c(85, 60, 53, 70)
name## [1] "Danny" "Esther" "Karen" "Kariem"
age## [1] 35 33 32 41
sex## [1] "M" "F" "F" "M"
height## [1] 183 160 155 178
weight## [1] 85 60 53 70
mixed <- c(113, "Tom", TRUE)
mixed## [1] "113" "Tom" "TRUE"
name## [1] "Danny" "Esther" "Karen" "Kariem"
age## [1] 35 33 32 41
class_demographics <- data.frame(name, age, sex, height, weight)
class_demographics## name age sex height weight
## 1 Danny 35 M 183 85
## 2 Esther 33 F 160 60
## 3 Karen 32 F 155 53
## 4 Kariem 41 M 178 70
ed.moveforward()
ed.moveforward(speed = "fast")
ed.moveforward(speed = "fast")
ed.turnright()
ed.turnright()
ed.moveforward(speed = "fast")