c {base} | R Documentation |
This is a generic function which combines its arguments.
The Default method combines its arguments To form a vector.
All arguments are coerced To a common type which Is the
type Of the returned value, And all attributes except
names are removed.
c(...);
NULL or an expression or a vector of an appropriate mode. (With no arguments the value is NULL.)
# for the vector literal, use the syntax of [] literal is better:
# use c() function
c(1,2,3,4,5,6);
# is equals to the vector literal syntax
[1 2 3 4 5 6];
# create string vector
c("a","b","c","d");
# create logical vector
c(TRUE, TRUE, FALSE);