Create a 3-D array containing the number of neighbors around each point, per species

parallelCountNbd(r, NbSpecies, x, y, Type, Weight)

Arguments

r

The vector of distances to take into account.

NbSpecies

The number of species of the community.

x, y

The coordinates of the points.

Type

A vector containing the species of each point (as integer, i.e. the factor code).

Weight

A vector containing the weights of points.