Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close


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