coordinates: get or set spatial coordinates of species data

Description Usage Arguments Value Author(s) References Examples

Description

Get or set spatial coordiates of a sdmdata object.

Usage

1
2
3
4
5
## S4 method for signature 'sdmdata'
coordinates(obj,...)

## S4 replacement method for signature 'sdmdata'
coordinates(object)<-value

Arguments

obj

speciesData (either of singleSpecies, multiple Species or SpeciesDataList) object

object

same as obj

value

spatial coordinates either a matrix, or data.frame, or column name as character, or a formula (e.g., ~x+y, or ~coords(x+y))

...

Additional arguments

Value

matrix, or if the coordinates set, the sdmdata object is returned.

Author(s)

Babak Naimi naimi.b@gmail.com

http://r-gis.net

http://biogeoinformatics.org

References

Naimi, B., Araujo, M.B. (2016) sdm: a reproducible and extensible R platform for species distribution modelling, Ecography, DOI: 10.1111/ecog.01881

Examples

1
2
3
4
5
6
file <- system.file("external/data.sdd", package="sdm")
d <- read.sdm(file)

d # a sdmdata object

coordinates(d)

sdm documentation built on April 30, 2020, 1:04 a.m.