names: Names of species

Description Usage Arguments Value Author(s) References Examples

Description

Get or set the names of the species of a sdmdata object

Usage

1
2
3
4
5
## S4 method for signature 'sdmdata'
names(x)

## S4 replacement method for signature 'sdmdata'
names(x)<-value

Arguments

x

A sdm data object (sdmdata

value

character (vector)

Value

For names, a character

For names<-, the updated object.

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, 39:368-375, DOI: 10.1111/ecog.01881

Examples

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

d <- read.sdm(file)

d

names(d) # returns the names of species

Example output

Loading required package: sp
sdm 1.0-89 (2020-04-22)
class                                 : sdmdata 
=========================================================== 
number of species                     :  1 
species names                         :  species1 
number of features                    :  3 
feature names                         :  bc12, bc4, ndvi 
type                                  :  Presence-Absence 
has independet test data?             :  FALSE 
number of records                     :  50 
has Coordinates?                      :  TRUE 
[1] "species1"

sdm documentation built on Nov. 12, 2021, 9:06 a.m.

Related to names in sdm...