Skip to content

Instantly share code, notes, and snippets.

@abhishekdagarit
Last active October 30, 2017 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekdagarit/7a2cf53bd5d8b82a66e855399ac67057 to your computer and use it in GitHub Desktop.
Save abhishekdagarit/7a2cf53bd5d8b82a66e855399ac67057 to your computer and use it in GitHub Desktop.
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