Species Occurrences Desaggregation

Share:

Description

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

Usage

1
ecospat.occ.desaggregation (dfvar, colxy, colvar=NULL, min.dist, plot=TRUE)

Arguments

dfvar

A dataframe with x, y, and variables.

colxy

The range of columns for x and y in df.

colvar

The range of columns for variables in df.

min.dist

The minimun distance threshold in the sub-dataframe.

plot

A boolean indicating whether to plot the resulting distribution of occurrences.

Details

The number of occurrences kept and excluded is shown in a dynamic plot. At the end of the selection process, a plot showing the resulting distribution of occurrences will be plotted if argument plot=FALSE

Value

A subset of df with the columns specified in colvar.

Author(s)

Olivier Broennimann olivier.broennimann@unil.ch

Examples

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

occ.sp1 <- ecospat.occ.desaggregation(dfvar=sp1,colxy=2:3,colvar=NULL, min.dist=500,plot=TRUE)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.