[R] peaks
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Jun 1 14:22:08 CEST 2001
On Fri, 1 Jun 2001, Mark Myatt wrote:
> 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?
package ts:
> help.search("embed")
Help files with alias or title matching `embed':
Type `?FOO' to inspect entry `FOO(PKG) TITLE'.
embed(ts) Embedding a Time Series
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list