Description Usage Arguments Value Examples

This function searches in a radius around a series of x,y points and finds any points within a radius, m, of those points.

1 | ```
countAdultsInRadius(searchPoint, forest, m)
``` |

`searchPoint` |
An (x,y) vector of an "origin" point to search from. |

`forest` |
An (x,y) data.frame of search points. |

`m` |
The radius to search by. |

This function returns a number representing the total number of records found. This function operates on the dist() function in R, and does not search in a square, but rather, a circle.

1 | ```
countAdultsInRadius(c(1,2), data.frame(x=c(1:5), y=c(1:5)),6)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.