Only this week, get the SQL Complete Track of 9 courses in a special prize of $330 $89!


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)


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", ...)