R Markdown

The c function is used to combined data. For example. 1,2,3,4,5 can be combined into a vector by doing the folowing

vector <- c(1,2,3,4,5)
vector
## [1] 1 2 3 4 5

The c function is not limited to only numeric data. Lets combine these charaters to string vectors

vector2 <- c("a", "b", "c", "d")
vector2
## [1] "a" "b" "c" "d"

Numeric and character string can be combined together

vector3 <-c(1, "a", 16, "c")
vector3
## [1] "1"  "a"  "16" "c"