Skip to content
Back to formatted view

Raw Message

Message-ID: <zLsUadAye3F7EwLX@myatt.demon.co.uk>
Date: 2001-06-01T11:08:34Z
From: Mark Myatt
Subject: peaks
In-Reply-To: <3B14F620.25982.10CCED0@localhost>

Petr Pikal <petr.pikal at precheza.cz> writes:
>I have posted similar question few weeks ago and I have got a short 
>response from prof. Ripley. I transformed it into this function:
>
>peaks_function(series,span=3)
>{
>z <- embed(series, span)
>result_max.col(z) == 1 + span %/% 2
>result
>}

Where does the embed() function come from?

Mark

--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._