Introduction

Instruction

But variables don’t just store numerical values. They can also store objects, like vectors. In R, a vector is simply a collection of values. You already know that we create vectors like this:

numbers <- c(1, 1, 2, 3, 5, 8)

Exercise

Create a vector named names containing "John", "Emma", "Olivia", and "Nick".

Stuck? Here's a hint!

We put strings in quotes: "...", so we type:

names <- c("John", ...)