Learn R Programming

sperich (version 1.5-8)

getDimension: getDimension

Description

This function calculates the dimension of the grid which should be used for a species richness estimation.

Usage

getDimension(dataset.all.species, resolution=1)

Value

The dimension which is needed to create a grid used for a species richness estimation on a given database of species occurrence locations.

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.

resolution

The resolution of the grid in (geographical) degree.

Author

Maximilian Lange, Sven Lautenbach

Details

This function calculates the dimension of the grid which should be used for a species richness estimation on a given database of species occurrence locations.

Examples

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

#extract dimension out of the database
dimension <- getDimension(dataset.all.species, resolution=1)
print(dimension)

Run the code above in your browser using DataLab