getDimension: getDimension

View source: R/getDimension.R

getDimensionR Documentation

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.

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.

Value

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

Author(s)

Maximilian Lange, Sven Lautenbach

Examples

##load data
data(dataset.all.species)

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

sperich documentation built on July 26, 2023, 5:49 p.m.