Learn R Programming

sperich (version 1.5-7)

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)

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.

Value

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

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
# NOT RUN {
##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