Hi,

when I assign a one row matrix to another variable, then somehow R
automatically convert that varaible into  a list.

For example:

> a = matrix (12, 3, 4)
> b = a[1,]
> b
[1] 12 12 12 12

Is there a way to enable R automatically make b as a one row matrix , rather
than explicitly assign like matrix (b, ncol=1).   I have come across a
couple of time, that when I try to check how many rows of the computed
result matrix - nrow(,,,), because there is only one row, the program failed
as R tried to interpret it as a list.

Can some one help?

-- 
Waverley @ Palo Alto

	[[alternative HTML version deleted]]

