ecospat.occ.desaggregation: Species Occurrences Desaggregation

Description Usage Arguments Details Value Author(s) Examples

View source: R/ecospat.occprep.R

Description

Remove species occurrences in a dataframe that are closer to each other than a specified distance threshold.

Usage

1

Arguments

xy

A dataframe with xy-coordinates (x-column must be named 'x' and y-column 'y')

min.dist

The minimun distance between points in the sub-dataframe.

by

Grouping element in the dataframe (e.g. species, NULL)

Details

This function will desaggregate the original number of occurrences, according to a specified distance.

Value

A subset of the initial dataframe. Indicated the "initial", "kept" and "out number of points.

Author(s)

Frank Breiner [email protected]

with contributions of Olivier Broennimann [email protected]

Examples

1
2
3
4
5
6
7
## Not run: 
spp <- ecospat.testNiche
sp1 <- spp[1:32,2:3]

occ.sp1 <- ecospat.occ.desaggregation(xy=sp1, min.dist=500, by=NULL)

## End(Not run)

ecospat documentation built on Nov. 23, 2017, 5:04 p.m.