.BG
.VE $Header: /usr3/s/current/s/.help/RCS/cbind,v 1.2 83/12/30 19:25:05 rab Exp $
.FN cbind
.FN rbind
.TL
cbind rbind: Form Matrix from Columns or Rows
.CS
cbind(arg1, arg2, ...)
rbind(arg1, arg2, ...)
.PP
.AG argi
vector or matrix.  Missing values (NAs) are allowed.
.RT
matrix composed by adjoining columns (`cbind') or rows
(`rbind').
.PP
If several arguments are matrices, they must contain the same number
of rows (`cbind') or columns (`rbind').
Vector arguments are treated as
row vectors by `rbind' and column vectors by `cbind'.
If all arguments are vectors,
the result will contain as many rows or columns as the length of the
longest vector.  Shorter vectors will be repeated.
.PP
If arguments are time-series, no attempt is made to relate their time
parameters.  See `tsmatrix' for this case.
.PP
Arguments that are NULL are ignored.
See the last example.
.EX
cbind(1,xmatr) %* regr$coef      # add column of ones
       # to matrix multiply with coef vector

rbind(matrix,newrow1,newrow2)      # add 2 new rows

x<-NULL
for(i in seq(5)){
    ... # compute z
    x <- cbind(x,z)
    }
.KW array*
.KW matrix
.KW manip
.WR
