Skip to content

Allow new hyperSpec object without wavelengths #99

Open

Description

@GegznaV

This is cbeleites/hyperSpec#296


Suggested:

new("hyperSpec", data = data.frame(c = 1:5))

this works:

new("hyperSpec",
     wavelength = numeric(0),
     spc = matrix(NA_real_, ncol = 0, nrow = 5), 
     data = data.frame(c = 1:5)
)

Activity

  1. GegznaV commented on Aug 6, 2022

    @GegznaV
    MemberAuthor

    Currently, the official solution to this issue in hyperSpec is to use as.hyperSpec():

    as.hyperSpec(data.frame(c = 1:5))
    as.hyperSpec(as.matrix(data.frame(c = 1:5)))
    as.hyperSpec(matrix(1:5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions