Open GegznaV opened 3 years ago
Currently, each method of as.hyperSpec() uses its own order, default values, and number of arguments:
as.hyperSpec()
.as.hyperSpec.matrix <- function(X, wl = NULL, ...) .as.hyperSpec.data.frame <- function(X, spc = NULL, wl = NULL, labels = attr(X, "labels"), ...) .as.hyperSpec.hyperSpec <- function(X)
This makes it more difficult to use in other functions as each case should be addressed separately. My suggestions would be to:
NULL
wl
May also be related:
This issue originally was:
Currently, each method of
as.hyperSpec()
uses its own order,default values, and number of arguments:This makes it more difficult to use in other functions as each case should be addressed separately. My suggestions would be to:
NULL
for the default values in the signature and perform calculations or real initial values inside the methods;wl
into the name that will be suggested in cbeleites/hyperSpec#90.May also be related:
This issue originally was: