powered by
Spectra
Set or retrieve column names of a Spectra object
spc.colnames(x)# S4 method for Spectra spc.colnames(x)spc.colnames(x) <- value# S4 method for Spectra spc.colnames(x) <- value
# S4 method for Spectra spc.colnames(x)
spc.colnames(x) <- value
# S4 method for Spectra spc.colnames(x) <- value
A Spectra object
character vector containing new column names to be assigned
spc.colnames() returns the column names of an object of class Spectra as a character vector. spc.colnames()<- returns a Spectra object.
spc.cname.construct
# 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