Learn R Programming

sperich (version 1.5-9)

data.into.Grid: 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)

Value

This function returns a grid which contains the species occurrence information.

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.

Author

Maximilian Lange, Sven Lautenbach

Details

This routine adds the species occurrence data to the grid through adding their location as a point into 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)

##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)

Run the code above in your browser using DataLab