Learn R Programming

sperich (version 1.5-9)

createNonInterpolatedGrid: Create a species occurrences grid with no interpolation

Description

This routine creates a grid containing the species occurrences.

Usage

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

Value

A grid containing the species occurrences without interpolation.

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 occurrence location.

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.

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.

Author

Maximilian Lange, Sven Lautenbach

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)
origin <- getOrigin(dataset.all.species)
resolution <- 1
all.species <- -1

##create grid containing species occurrences
species.occurrences <- createNonInterpolatedGrid(dataset.all.species, 
				dimension, origin, resolution, all.species)

Run the code above in your browser using DataLab