Learn R Programming

raptr (version 0.0.3)

names: Names

Description

This function sets or returns the species names in an object.

Usage

# S3 method for RapData
names(x) <- value

# S3 method for RapData names(x)

# S3 method for RapUnsolOrSol names(x) <- value

# S3 method for RapUnsolOrSol names(x)

Arguments

x

RapData, RapUnsolved, or RapSolved object.

value

new species names.

See Also

RapData, RapUnsolved, RapSolved.

Examples

Run this code
# NOT RUN {
# load data
data(sim_rs)
# show names
names(sim_rs)
# change names
names(sim_rs) <- c('spp1', 'spp2', 'spp3')
# show new names
names(sim_rs)
# }

Run the code above in your browser using DataLab