c {base} R Documentation

Combine Values into a Vector or List

Description


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.

Usage

c(...);

Arguments

values

objects to be concatenated.

env

[as Environment]

Details

Authors

SMRUCC genomics Institute

Value

NULL or an expression or a vector of an appropriate mode. (With no arguments the value is NULL.)

clr value class

Examples

 # 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);

[Package base version 2.33.856.6961 Index]