The c() function in R is used to combine or concatenate its argument.
c(…)
The c() function takes a parameter value …, which represents the concatenated objects.
The c() function returns an expression or vector with an appropriate mode.
a <- c(1, 2, 3)b <- c(4, 5, 6)mystring <- c(a, b)mystring
c() function to concatenate the values in the objects a and b.