gjmvanboxtel / gsignal

R implementation of the Octave signal package
GNU General Public License v3.0
22 stars 6 forks source link

findpeaks gives a cryptic error: 'names' attribute [2] must be the same length as the vector [0] #22

Open bnicenboim opened 2 weeks ago

bnicenboim commented 2 weeks ago

findpeaks is not working with this vector of data: problem.zip

gsignal::findpeaks(data = problem, MinPeakDistance = 100)
# Error in names(x) <- value : 
#  'names' attribute [2] must be the same length as the vector [0]

(I also tried with the newest version gsignal_0.3-6.9010)

gjmvanboxtel commented 5 days ago

Thanks, this was also fixed in v0.3-7.9000. It was a typo in the code.