[ top | up ]

Combine Columns into a Matrix

Syntax

cbind(...)

Description

cbind takes a sequence of vector 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

rbind, c.

Examples

cbind(1,1:n)