Rstudio Error Unexpected Symbol

I'm new to RStudio, and I was following a video showing how to create this new data set:
data.1 <- data.frame(first.column = c(1,2,3), second.column = c(4,5,6), third column = c(7,8,9))

But when I typed this into RStudio, the error message displayed:
Error: unexpected symbol in "data.1 <- data.frame(first.column = c(1,2,3), second.column = c(4,5,6), third column"

I tried checking for typos and retyping, but keep getting the same error. Thanks to anyone who can help!

third column

needs .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.