Re: [R] arrayInd and which

2013-04-05 Thread David Winsemius
On Apr 5, 2013, at 8:07 AM, R. Michael Weylandt wrote: > On Fri, Apr 5, 2013 at 2:08 PM, Keith S Weintraub wrote: >> And to the rest of you good R folks I would still be interested to see a >> working example of arrayInd, what it's supposed to do and what it's used for. > > A little utility fu

Re: [R] arrayInd and which

2013-04-05 Thread R. Michael Weylandt
On Fri, Apr 5, 2013 at 2:08 PM, Keith S Weintraub wrote: > And to the rest of you good R folks I would still be interested to see a > working example of arrayInd, what it's supposed to do and what it's used for. A little utility function for dealing with the matrix-is-really-a-vector indexing du

Re: [R] arrayInd and which

2013-04-05 Thread Keith S Weintraub
David, Thanks for your help and time. Your explanation was just what I needed. And to the rest of you good R folks I would still be interested to see a working example of arrayInd, what it's supposed to do and what it's used for. I have read the doc page a number of times and it's still not cl

Re: [R] arrayInd and which

2013-04-03 Thread David Winsemius
On Apr 3, 2013, at 10:59 AM, David Winsemius wrote: > > On Apr 3, 2013, at 7:53 AM, Keith S Weintraub wrote: > >> Folks, >> >> I have Googled but not found much regarding arrayInd aside from the "which" >> help page. >> >> Any good examples or docs on what arrayInd does that is better or dif

Re: [R] arrayInd and which

2013-04-03 Thread David Winsemius
On Apr 3, 2013, at 7:53 AM, Keith S Weintraub wrote: > Folks, > > I have Googled but not found much regarding arrayInd aside from the "which" > help page. > > Any good examples or docs on what arrayInd does that is better or different > from which()? > > In addition take the following 20x10

Re: [R] arrayInd and which

2013-04-03 Thread Adams, Jean
KW, I don't know anything about arrayInd, so I can't help with that question. In order to determine if there is a better way to do your comparison depends largely on what you want to do with the results. The way that you're doing it now seems fine to me, but I wonder what you want to use the ind