[ top | up ]

Combine Columns into a Matrix

Syntax

cbind(...)

Value

cbind takes a sequence of vector and/or matrix arguments and combines them as the columns of a matrix. If the vectors differ in length, the values in the shorter ones are recycled so that their effective length is equal to that of the longest argument.

See Also

c, rbind.

Examples

cbind(1,1:n)