On 15-Jul-03 Achim Zeileis wrote:
>> >[...]
>> > mu1<-mu[iX1,drop=FALSE]; mu2<-mu[iX2,drop=FALSE];
>> > mu1
>>
>> [1] 1
>>
>> > mu2
>>
>> [1] 2 3
>>
>> So now I still don't get my 1xk matrices, even though mu is a
>> matrix and I've used "drop=FALSE". Why?
>
> Because you are subsetting mu like a
On Tuesday 15 July 2003 12:14, Ted Harding wrote:
> Hi Folks,
>
> People's suggestion of "drop=FALSE" seemed to do the trick
> (preserving "matrix" character when subestting to a row,
> i.e. creating 1xk matrix).
>
> However, I seem to have encountered a case where even this does
>
> not work:
> >
Hi Folks,
People's suggestion of "drop=FALSE" seemed to do the trick
(preserving "matrix" character when subestting to a row,
i.e. creating 1xk matrix).
However, I seem to have encountered a case where even this does
not work:
> mu<-c(1,2,3)
> mu<-matrix(mu,nrow=1)
> mu
[,1] [,2] [,3]