Learn R Programming

geoSpectral (version 0.17.5)

spc.colnames: Column names of Spectra object

Description

Set or retrieve column names of a Spectra object

Usage

spc.colnames(x)

# S4 method for Spectra spc.colnames(x)

spc.colnames(x) <- value

# S4 method for Spectra spc.colnames(x) <- value

Arguments

x

A Spectra object

value

character vector containing new column names to be assigned

Value

spc.colnames() returns the column names of an object of class Spectra as a character vector. spc.colnames()<- returns a Spectra object.

See Also

spc.cname.construct

Examples

Run this code
# NOT RUN {
x <- spc.example_spectra()
head(spc.colnames(x))
# or 
spc.colnames(x) <- spc.cname.construct(x)
spc.colnames(x)
# }

Run the code above in your browser using DataLab