Learn R Programming

geoSpectral (version 0.17.5)

spc.cname.construct: Generating column names for a Spectra object

Description

Function for a Spectra object that generates column names made of a combination of @shortName and @Wavelenght slots. If value is omitted, the @ShortName slot is used.

Usage

spc.cname.construct(object, value)

# S4 method for Spectra spc.cname.construct(object, value)

Arguments

object

A variable of class Spectra

value

A character object

Value

vector of characters

Examples

Run this code
# NOT RUN {
sp <- spc.example_spectra()
spc.cname.construct(sp)
spc.cname.construct(sp,"Newvar")

# }

Run the code above in your browser using DataLab