c | R Documentation |
Combine elements to form a vector.
c(...)
Other R data structures: tibble()
, list()
# A numeric vector of length 4: c(1, 8, 7, 5) #> [1] 1 8 7 5 ----------------------------------- # A character vector of length 3: c("apple", "banana", "economics") #> [1] "apple" "banana" "economics" ----------------------------------- # A logical vector of length 5: c(TRUE, FALSE, FALSE, TRUE, FALSE) #> [1] TRUE FALSE FALSE TRUE FALSE ----------------------------------- # Vectors can even be combined: c(1, 2, c(3, 4), c(5, 6, 7)) #> [1] 1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.