See ?row ?col On Fri, Aug 1, 2008 at 1:42 PM, Ralph S. <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to get the positions in array coordinates (needed later) of > certain elements in an array but I am not sure how to get them. > > My array is Q and the condition is dt>dV, where dt and dV are arrays of > exactly the same dimensions as Q. > > I know that I can extract the elements of Q by using Q[dt>dV] but I need the > array position of where this happens. > > I don't see how to use the which() command since some elements given by that > the condition are not unique > ( I tried which(Q==Q[dt>dV] ,arr.ind=TRUE) but that gives me too many > positions plus > Warning message: > In Q == Q[dt > dV] : > longer object length is not a multiple of shorter object length) > > Any help would be really appreciated! > > -Ralph > > > _________________________________________________________________ > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.