powered by
These functions are shortcuts to convert other objects into hypeSpec objects.
as.hyperSpec(X, ...)# S4 method for matrix as.hyperSpec(X, wl = guess.wavelength(colnames(X)), ...)# S4 method for data.frame as.hyperSpec(X, wl = guess.wavelength(colnames(X)), ...)
# S4 method for matrix as.hyperSpec(X, wl = guess.wavelength(colnames(X)), ...)
# S4 method for data.frame as.hyperSpec(X, wl = guess.wavelength(colnames(X)), ...)
the object to convert
additional parameters that should be handed over to new ("hyperSpec") (initialize)
new ("hyperSpec")
wavelength vector. Defaults to guessing from the column names in X
X
hyperSpec object
initialize
# NOT RUN { tmp <- data.frame(flu [[,, 400 ~ 410]]) (wl <- colnames (tmp)) guess.wavelength (wl) # }
Run the code above in your browser using DataLab