search for: crossrsort

Displaying 2 results from an estimated 2 matches for "crossrsort".

Did you mean: crossrsorted
2009 Jul 07
1
error: no such index at level 2
Hi, I am confused about how to select elements from a list. I'm trying to select all rows of a table 'crossRsorted' such that the mean of a related vector is > 0. The related vector is accessible as a list element l[[i]] where i is the row index. I thought this would work: > crossRsorted[mean(q[[ crossRsorted[,1] ]], na.rm = TRUE) > 0, ] Error in q[[crossRsorted[, 1]]] : no such index at level...
2009 Jul 09
2
How to Populate List
...2 AM, Petr PIKAL <petr.pikal@precheza.cz> wrote: > Hi > > r-help-bounces@r-project.org napsal dne 07.07.2009 19:06:17: > > > Hi, > > > > I am confused about how to select elements from a list. > > > > I'm trying to select all rows of a table 'crossRsorted' such that the > > mean of a related vector is > 0.  The related vector is accessible as > > a list element l[[i]] where i is the row index. > > > > I thought this would work: > > > > > crossRsorted[mean(q[[ crossRsorted[,1] ]], na.rm = TRUE) > 0,...