Find peaks of a curve #https://rtricks.wordpress.com/2009/05/03/an-algorithm-to-find-local-extrema-in-a-vector/

mf_findpeaks(vec, bw = 1, x.coo = c(1:length(vec)))

Value

peaks

Examples