Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Vectors in R

Vectors in R

Creating a vector

Use c() function

vector_1 <- c(23,4,2)
vector_2 <- c("p", "q", "r")
vector_3 <- c(TRUE, FALSE, FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.