data.into.Grid {sperich} | R Documentation |
Species occurrences to grid
Description
This function adds the species occurrence data to a new grid with given dimension, shift and resolution.
Usage
data.into.Grid(dataset.one.species, dimension, origin, resolution=1)
Arguments
dataset.one.species |
A dataset containing one species with its ID (named: speciesID) and the longitude (named: long) and latitude (named: lat) of the occurrence locations of that species. |
dimension |
The dimension of the processed grid. |
origin |
The geographic coordinates of the origin of the grid. |
resolution |
The resolution of the grid in (geographical) degree. |
Details
This routine adds the species occurrence data to the grid through adding their location as a point into it.
Value
This function returns a grid which contains the species occurrence information.
Author(s)
Maximilian Lange, Sven Lautenbach
References
Raedig, C., Dorman, C.F., Hildebrandt, A. and Lautenbach, S. (2010). Reassessing Neotropical angiosperm distribution patterns based on monographic data: a geometric interpolation approach. Biodivers Conserv, 19, 1523-1546.
Examples
##load data
data(dataset.all.species)
##create grid parameters
dimension <- getDimension(dataset.all.species, resolution=1)
origin <- getOrigin(dataset.all.species)
#extract datasets of one species out of database
dataset.one.species <- extract.species(dataset.all.species, 3)
##add species occurrence information to grid
grid <- data.into.Grid(dataset.one.species, dimension, origin, resolution=1)