Learn R Programming

sperich (version 1.3-7)

createNonInterpolatedGrid: Create a Species Occurences Grid with no interpolation

Description

This routine creates a grid containing the species occurences.

Usage

createNonInterpolatedGrid(dataset.all.species, dimension, 
			shift, resolution=1, all.species=-1)

Arguments

dataset.all.species
A dataset containing all observed species with their ID (named: speciesID) and the longitude (named: long) and latitude (named: lat) of their occurence location.
dimension
The dimension of the processed grid.
shift
The geographic coordinates of the origin of the grid.
resolution
The resolution of the grid in (geographical) degree.
all.species
The vector with the numbers of the species which should be mentioned. If the first value is -1, all species in the database will be added to the grid.

Value

  • A grid containing the species occurences without interpolation.

Details

This routine creates a grid and adds all species mentioned in 'all.species' to it.

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

Run this code
##load data
data(dataset.all.species)
data(dataset.landwater)

##create grid parameters
dimension <- getDimension(dataset.all.species, resolution=1)
shift <- getShift(dataset.all.species)
resolution <- 1
all.species <- -1

##estimate species richness
species.occurences <- createNonInterpolatedGrid(dataset.all.species, 
				dimension, shift, resolution, all.species)

Run the code above in your browser using DataLab