Re: [R] array dimension changes with assignment

2008-05-13 Thread Duncan Murdoch
On 5/13/2008 12:47 AM, Knut M. Wittkowski wrote: Why does the assignment of a 3178x93 object to another 3178x93 object remove the dimension attribute? Your example is not reproducible. When I make one that is reproducible, I don't see the error: > GT <- array(dim = c(6,3178,93)) > dim(GT) [

Re: [R] array dimension changes with assignment

2008-05-13 Thread Jeremiah Rounds
>Why does the assignment of a 3178x93 object to >another 3178x93 object remove >the dimension attribute?>> GT <- array(dim = c(6,nrow(InData),ncol(InSNPs)))>> >dim(GT)>[1] 6 3178 93>> SNP1 <- InSNPs[InData[,"C1"],]>> dim(SNP1)>[1] 3178 > 93>> SNP2 <- InSNPs[InData[,"C2"],]>> dim(SNP2)>[1] 31

[R] array dimension changes with assignment

2008-05-13 Thread Knut M. Wittkowski
Why does the assignment of a 3178x93 object to another 3178x93 object remove the dimension attribute? > GT <- array(dim = c(6,nrow(InData),ncol(InSNPs))) > dim(GT) [1]6 3178 93 > SNP1 <- InSNPs[InData[,"C1"],] > dim(SNP1) [1] 3178 93 > SNP2 <- InSNPs[InData[,"C2"],] > dim(SNP2) [1