Create a 3-D array containing the number of neighbors around each point, per species
parallelCountNbd(r, NbSpecies, x, y, Type, Weight)
The vector of distances to take into account.
The number of species of the community.
The coordinates of the points.
A vector containing the species of each point (as integer, i.e. the factor code).
A vector containing the weights of points.