Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!


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