[ top | up ]

Combine Values into a Vector or List

Syntax

c(..., recursive=FALSE)

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. If recursive=TRUE, the function recursively descends through lists combining all their elements into a vector.

See Also

unlist.

Examples

c(1,7:9) c(1:5, 10.5, "next") c(options(), recursive=T)