coordinates: get or set spatial coordinates of species data

coordsR Documentation

get or set spatial coordinates of species data

Description

Get or set spatial coordiates of a sdmdata object.

Usage

## S4 method for signature 'sdmdata'
coords(obj,...)

## S4 replacement method for signature 'sdmdata'
coords(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 as character to change the names of coordinates

...

Additional arguments

Value

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

Author(s)

Babak Naimi naimi.b@gmail.com

https://www.r-gis.net/

https://www.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

file <- system.file("external/data.sdd", package="sdm")
d <- read.sdm(file)

d # a sdmdata object

coords(d)


babaknaimi/sdm documentation built on April 4, 2024, 1:45 p.m.