-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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 withmutate()inputsegment.
✖ Inputsegmentcan't be recycled to size 1.
ℹ Inputsegmentis1:nrow(.).
ℹ Inputsegmentmust be size 1, not 5.
ℹ The error occurred in group 1: segment = 2.
Runrlang::last_error()to see where the error occurred.
In addition: Warning messages:
1:colsis now required.
Please usecols = c(data)
2: unnest() has a new interface. See ?unnest for details.
Trydf %>% unnest(c(start_pos, end_pos, integral)), withmutate()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