Skip to content

Error message after running cdom_gaussian #16

@Nawalbouchachi

Description

@Nawalbouchachi

Hello,
So I've been recently exploring this package to treat my owne CDOM Data.
To begin I just tried the example data given here
https://github.com/PMassicotte/cdom/tree/gaussian#gaussian-decomposition

But whenever I run:

###Decompose the generated spectra
myfit <- cdom_gaussian(x = wl, y = spc)

I get the following error message:

myfit <- cdom_gaussian(x = wl, y = spc)
Error: Problem with mutate() input segment.
✖ Input segment can't be recycled to size 1.
ℹ Input segment is 1:nrow(.).
ℹ Input segment must be size 1, not 5.
ℹ The error occurred in group 1: segment = 2.
Run rlang::last_error() to see where the error occurred.
In addition: Warning messages:
1: cols is now required.
Please use cols = c(data)
2: unnest() has a new interface. See ?unnest for details.
Try df %>% unnest(c(start_pos, end_pos, integral)), with mutate() if needed
Called from: signal_abort(cnd)

I am not an advanced R user so, I am not sure to understand the issue. Can you provide help with this?
Thank you
Nawal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions