[R] array indexing and which

2005-04-17 Thread Werner Wernersen
Hi R friends! I am stuck with a stupid question: I can circumvent it but I would like to understand why it is wrong. It would be nice if you could give me a hint... I have an 2D array d and do the following: ids <- which(d[,1]>0) then I have a vector gk with same column size as d and do: ids2 <

Re: [R] array indexing and which

2005-04-17 Thread Marc Schwartz
On Sun, 2005-04-17 at 19:13 +0200, Werner Wernersen wrote: > Hi R friends! > > I am stuck with a stupid question: I can circumvent it > but I would like to > understand why it is wrong. It would be nice if you > could give me a hint... Having a reproducible example, as per the posting guide, wou

RE: [R] array indexing and which

2005-04-17 Thread Bill.Venables
18 April 2005 3:13 AM To: r-help@stat.math.ethz.ch Subject: [R] array indexing and which Hi R friends! I am stuck with a stupid question: I can circumvent it but I would like to understand why it is wrong. It would be nice if you could give me a hint... I have an 2D array d and do the followi