Hi,

I am using the ZigZag function (which is more elegant than the one I
wrote), and wish to only get the extrema, not the linearly interpolated
lines. In the function, I'd like to remove the line:

       zz <- approx(zz, xout = 1:nn)$y

Is this possible? If yes, how? I tried copying the function and using mine,
but then I get errors such as naCheck not defined,
which is surely an environment issue.

  Thanks,

     Gordon

	[[alternative HTML version deleted]]

