Skip to content
Prev 85617 / 398506 Next

How to force a vector to be column or row vector?

On 2/2/06, Liaw, Andy <andy_liaw at merck.com> wrote:
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:
[,1] [,2] [,3]
[1,]    1    1    1