Calculate for each box how many points are inside.

inside <- function ### Calculate for each box how many points are inside. (boxes, ### Data frame of box descriptions, each row is 1 box, need columns ### left right top bottom. points ### Data frame of points, each row is 1 point, need columns x y. ){ sapply(1:nrow(boxes),function(i)in1box(points,boxes[i,])) ### Vector of point counts for each box. }

Please contact Toby Dylan Hocking if you are using directlabels or have ideas to contribute, thanks! |

Documentation website generated from source code version 2014.1.27 (svn revision 675) using inlinedocs. |

validate |