Skip to content

correct $spc column names for spc.*() functions #245

Closed

Description

@GregoryHuff

I have been using spc.loess to smooth some spectra. I noticed that when I export them with write.table, the x-axis (which should be "wavelengths") is just the row number. I fixed this just by adding an extra line that probably shouldn't be necessary
colnames(x$spc) <- x@wavelength[]

Activity

  1. added
    Type: bug 💣
    on Aug 4, 2020
  2. cbeleites commented on Aug 4, 2020

    @cbeleites
    Owner

    Thank you for bringing this to our attention. Indeed, we fixed a related bug only yesterday: #237

    @GegznaV would you have time to fix this like the other one? If not, please unassign yourself.

    @GregoryHuff are you aware of any other places where this happens? (This is really a bug only since we decided earlier this year that colnames(spc) should be "guaranteed").

    And, since you seem to work with the colnames, have a look at #232. We'll change the behaviour of as.wide.df() to allow easier interaction with models like prcomp.

  3. added this to the Version 1.0 milestone on Aug 4, 2020
  4. cbeleites commented on Aug 4, 2020

    @cbeleites
    Owner

    @GregoryHuff we're in the middle of rather big transformations for hyperSpec, and right now IIRC the CRAN submission staff is in holidays. I therefore kindly ask you for some patience and to use your workaround possibly until we release hyperSpec 1.0.

  5. changed the title [-]smooth spc column names[/-] [+]correct $spc column names for spc.*() functions[/+] on Aug 4, 2020
  6. cbeleites commented on Aug 4, 2020

    @cbeleites
    Owner

    TODO:

  7. added
    Topic: unit test 1️⃣
    on Aug 4, 2020
  8. GegznaV commented on Aug 4, 2020

    @GegznaV
    Collaborator

    @GregoryHuff could you provide a reprex (minimal reproducibe example) that illustrates your issue?

  9. GegznaV commented on Aug 4, 2020

    @GegznaV
    Collaborator

    Fixed in #247


    check & fix other spc.*() functions, add unit tests (add lines above for functions that are done)

    @cbeleites I'll open a new issue for this.

  10. GegznaV commented on Aug 5, 2020

    @GegznaV
    Collaborator

    @GregoryHuff, I updated the instructions on how to install the development version of hyperSpec here. Can you confirm that your spc.loess() related issue is solved?

  11. removed
    Topic: unit test 1️⃣
    on Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Note: good first issuePriority: 2-mediumType: bug 💣

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions