Error in PlotActualvSCUL(SCUL.output) : 'list' object cannot be coerced to type 'double'
Hello,
thank you for all the great work on this package. I ran into a issue with a command PlotActualvSCUL() and I have no luck solving it. I have followed the tutorial at https://hollina.github.io/scul/articles/scul-tutorial.html with my own dataset. When I try to run:
PlotActualvSCUL(SCUL.output)
I am getting error message:
Error in PlotActualvSCUL(SCUL.output) : 'list' object cannot be coerced to type 'double'
Frankly, I do not understand where the problem lies. This is how my SCUL.output looks like:

I am still learning how to work with R and I am sorry if this is trivial question. Any suggestions are appreciated. Thank you!
I will look into this. Thanks for flagging it. Before I get to finding out if there's a bug causing it, I think you should still be able to proceed in plotting the two series against one another.
For some reason SCUL.output$y.scul is dimensions [1:25,1]. I suspect if you add this line SCUL.output$y.scul = unlist(SCUL.output$y.scul) then rerun PlotActualvSCUL(SCUL.output) it will work.
Many thanks for the answer! I tried to do as you suggested:
SCUL.output$y.scul = unlist(SCUL.output$y.scul) and then rerun PlotActualvSCUL(SCUL.output) but my SCUL.output did not change and I am getting the same error with the PlotActualvSCUL(SCUL.output).
I have no idea why the unlist() did not work. However I was able to plot the two series against each other using the plot() function.
Sorry that this didn't help you out. Want to send me an email ([email protected]) and we can schedule a zoom call to work out the kinks? Also if you are comfortable with sharing the data, you could send me the data file I can see if I can replicate the error to figure out what's going on. In any case let's chat via email then I'll see if there's a bug or if its a one off data issue