Hello,
You will find many tools for this purpose in the pastecs package. There are
4 regulation methods provided for transforming irregularly spaced
observations into regular time series: constant regconst(), linear reglin(),
spline regspline() (these three functions are just nice wrappers around the
approx() and spline() functions provided in the base R package), and also
the very powerful area method regarea(). In addition to the online help in
English, you will find additional explanations, examples and theoretical
explanations in the user manual (currently only in French) that you can
download from http://www.sciviews.org/pastecs. Hope this will help.
Best,
Philippe Grosjean
...........]<(({?<...............<?}))><...............................
) ) ) ) ) __ __
( ( ( ( ( |__) | _
) ) ) ) ) | hilippe |__)rosjean
( ( ( ( ( Marine Biol. Lab., ULB, Belgium
) ) ) ) ) __
( ( ( ( ( |\ /| |__)
) ) ) ) ) | \/ |ariculture & |__)iostatistics
( ( ( ( (
) ) ) ) ) e-mail: phgrosje at ulb.ac.be or phgrosjean at sciviews.org
( ( ( ( ( SciViews project coordinator (http://www.sciviews.org)
) ) ) ) ) tel: 00-32-2-650.29.70 (lab), 00-32-2-673.31.33 (home)
( ( ( ( (
) ) ) ) ) "I'm 100% confident that p is between 0 and 1"
( ( ( ( ( L. Gonick & W. Smith (1993)
) ) ) ) )
.......................................................................
-----Message d'origine-----
De : owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]De la part de Lukas Kubin
Envoye : vendredi 15 mars 2002 17:24
A : r-help at stat.math.ethz.ch
Objet : [R] creating time series from existing data
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Is it possible to create a time series from existing data frame? One
column of that frame contains dates (like "01/01/01") and the second
one
the values. The period is non-regular (it is not strictly daily nor
working-days-daily).
Thank you.
lukas
- --
Lukas Kubin
lukas.kubin at permonik.com
phone: 00420603836180
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8kiAv4TIZ2lmUAtsRAo1bAJ4/Cxj4CMUCEPKCzj7oK7zYI20ljwCeIPeo
SxNA50McDeNRgY/OzFkqvuc=9Cs1
-----END PGP SIGNATURE-----
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._