Skip to content

Add possibility to create hyperSpec object without spectra #288

Closed

Description

@galaxismad

In addition to issues #287 and #283, it would be great to have the opportunity to initialize hyperSpec objects without spectra, meaning only wavelength axis is given during initialization, but no spectral intensities are given.

Activity

  1. galaxismad commented on Dec 18, 2020

    @galaxismad
    Author

    It can be done quite easily with the following statement:

    new("hyperSpec", wavelength = 1:100, matrix(NA, ncol = 100, nrow = 0))

    More intuitive would be:

    new("hyperSpec", wavelength = 1:100, spc = NULL)

  2. added
    Type: enhancement 🎈
    on Dec 18, 2020
  3. GegznaV commented on Dec 21, 2020

    @GegznaV
    Collaborator

    The issue is fixed in #292. Let's wait if @cbeleites approves my suggestions.

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

    Type: enhancement 🎈

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions