[R] Count factor if

mathijsdevaan mathijsdevaan at gmail.com
Tue Feb 15 18:18:55 CET 2011


Thanks for your quick response. The solution that you propose comes close to
what I want, however by using 'FUN = order', the new variable is based on
its order rather than y< focal y. In the case of two similar rows
(Xrow1=Xrow2 and Yrow1=Yrow2), the value of Zrow1 < Zrow2. Any solutions?
Thanks!  
-- 
View this message in context: http://r.789695.n4.nabble.com/Count-factor-if-tp3306856p3307164.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list