countAdultsInRadius: Count Adults In Radius

Description Usage Arguments Value Examples

Description

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

Usage

1
countAdultsInRadius(searchPoint, forest, m)

Arguments

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.

Value

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.

Examples

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

ecology-rocks/disperseR documentation built on May 15, 2019, 7:58 p.m.