c() function in R Language is used to combine the arguments passed to it.
Syntax: c(...) Parameters: ...: arguments to be combinedExample 1:
# R program to cumulative maxima
# Calling c() function
x <- c(1, 2, 3, 4)
x
[1] 1 2 3 4Example 2:
# R program to cumulative maxima
# Calling c() function
x <- c("a", "b", "c", "d")
x
[1] "a" "b" "c" "d"