On 2/2/06, Liaw, Andy <[EMAIL PROTECTED]> wrote:
> From: Gabor Grothendieck
> >
> > Try this:
> >
> >
> > rbind(c(x))
> > cbind(c(x))
> > t(c(x))
>
> The c() is not needed above.

The poster asked for an expression that would work "regardless of
the original form" of the vector -- row, column or neither.  The c
gets it into a known form first.  For example:

> cbind(matrix(1,1,3))  # not a column vector!
     [,1] [,2] [,3]
[1,]    1    1    1

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to