yes, there is -- have a look at the online help file ?"[", especially
argument 'drop'. Try also this:
crud <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12),nrow=3,ncol=4)
crud[, 1, drop = FALSE]
I hope it helps.
Best,
Dimitris
On 4/6/2010 1:39 PM, Robert M. Flight wrote:
Hi All,
I'm hoping someone
On Apr 6, 2010, at 6:39 AM, Robert M. Flight wrote:
> Hi All,
>
> I'm hoping someone else can help me out with this. I am doing some
> matrix algebra using sub-parts of matrices, and sometimes I need only
> a single row/column of the original matrix. However, whenever I pull
> out only a single r
Hi All,
I'm hoping someone else can help me out with this. I am doing some
matrix algebra using sub-parts of matrices, and sometimes I need only
a single row/column of the original matrix. However, whenever I pull
out only a single row/column, R returns a row vector, but often this
will break my m
3 matches
Mail list logo