[R] Don't collapse degenerate array indices

David Winsemius dwinsemius at comcast.net
Thu Apr 19 15:26:44 CEST 2012


On Apr 19, 2012, at 9:14 AM, Sebastian Schubert wrote:

Compare

>> str( array(1,dim=c(3,4,5,1,1))[2:3,1:3,4:5,,]

 > str( array(1,dim=c(3,4,5,1,1))[2:3,1:3,4:5,,,drop=FALSE] )
  num [1:2, 1:3, 1:2, 1, 1] 1 1 1 1 1 1 1 1 1 1 ...

-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list