Compute number of locations for multiple taxa
locations.comp(XY, method = "fixed_grid",
nbe_rep = 0,
protec.areas = NULL,
Cell_size_locations = 10,
method_protected_area="no_more_than_one",
ID_shape_PA="WDPA_PID",
Rel_cell_size=0.05,
parallel=FALSE,
NbeCores=2)dataframe see Details
a character string, indicating the method used for estimating the number of locations. "fixed_grid" or "sliding scale". See details. By default, it is "fixed_grid"
a numeric, indicate the number of raster with random starting position for estimating the number of location. By default, it is 0 but some minimal translation of the raster are still done
a SpatialPolygonsDataFrame, shapefile with protected areas.
If provided, this will be taken into account for calculating number of location (see Details and method_protected_area).
By default, no shapefile is provided
a numeric, value indicating the grid size in kilometres used for estimating the number of location. By default, equal to 10
a character string. By default is "no_more_than_one"", which means occurrences within protected areas (if provided) will not be taken into account for estimating the number of locations following the grid system, see Details. By default, it is "no_more_than_one"
a character string, indicating the field name of protec.areas with ID of the SpatialPolygonsDataFrame of protected areas
a numeric, if method_locations="sliding scale", Cell_size_locations is ignored and the resolution is
given by the maximum distance separating two occurrences multiplied by Rel_cell_size. By default, it is 0.05
a logical. Wether running in parallel. By default, it is FALSE
an integer. Register the number of cores for parallel execution. By default, it is 2
A list with one list for each species containing [[1]]SpatialPolygonDataframe and [[2]]vector of the number of location.
Input as a dataframe should have the following structure:
It is mandatory to respect field positions, but field names do not matter
| [,1] | ddlat | numeric, latitude (in decimal degrees) |
| [,2] | ddlon | numeric, longitude (in decimal degrees) |
| [,3] | tax | character or factor, optinal field with taxa names |
# NOT RUN {
data(dataset.ex)
# }
# NOT RUN {
locations <- locations.comp(dataset.ex)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab