Combine Arguments into a Vector in R Programming – c() Function Last Updated : 15 Jun, 2020 Improve Improve Like Article Like Save Share Report c() function in R Language is used to combine the arguments passed to it. Syntax: c(…) Parameters: …: arguments to be combined Example 1: # R program to cumulative maxima # Calling c() function x <- c(1, 2, 3, 4) x Output: [1] 1 2 3 4 Example 2: # R program to cumulative maxima # Calling c() function x <- c("a", "b", "c", "d") x Output: [1] "a" "b" "c" "d" Like Article Suggest improvement Previous Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function Next Melting and Casting in R Programming Share your thoughts in the comments Add Your Comment Please Login to comment...