Re: [R] vectorization with subset?

2012-07-02 Thread dlv04c
The code is in the original post, but here it is again: Thanks, Dan -- View this message in context: http://r.789695.n4.nabble.com/vectorization-with-subset-tp4635156p4635208.html Sent from the R help mailing list archive at Nabble.com. __ R-help@

[R] vectorization with subset?

2012-07-02 Thread dlv04c
Hello, I have a data frame (68,000 rows) of scores (V4) for a series of [genomic] coordinates ranges (V2 to V3). I also have a data frame (1.2 million rows) of single [genomic] coordinates. For each genomic coordinate (in coord), I would like to determine the average of all scores whose ge