Displaying 1 result from an estimated 1 matches for "ic_peak".
Did you mean:
ic_peaks
2010 Apr 20
2
Error in from:to : NA/NaN argument
Hello R gurus,
I am having difficulties running a chunk of code that I otherwise thought
was correct..
> if (lower < max(length(IC_peaks),length(IC_valleys))) {
+ valley_index <- IC_valleys[lower+1]
+ for (i in seq(peak_index,valley_index-1)) {
+ IC_peaks_and_valleys <- c(IC_peaks_and_valleys, "v")
+ }
+ }
Error in from:to : NA/NaN argument
I can not pin point the issue and if you have any suggestions I would
great...