Skip to content

Use more consistent signature for methods of as.hyperSpec() #16

Open

Description

@GegznaV

Currently, each method of as.hyperSpec() uses its own order, default values, and number of arguments:

.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:

May also be related:


This issue originally was:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions