[R] Is there a time series resampling function ?

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Sun Sep 6 18:49:52 CEST 2015

There are lots of them. You might be having trouble searching because you don't know how to spell "interpolate". 


Also look at the Time Series task view on CRAN.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On September 6, 2015 4:54:45 AM PDT, AltShift <allennugent at hotmail.com> wrote:
>I need a function for regularising the time base of electronically
>signals (i.e. vectors of samples with a nominally constant time base). 
>For example, the accelerometer in my smartphone can deliver data at
>about 50
>Hz, but the sampling rate varies by about 5% throughout a recording. I
>developed signal processing functions that assume a constant sample
>rate, so
>I need to modify my input data vectors so that this assumption becomes
>Furthermore, if I want to combine signals from different sources that
>different sampling rates, I will be obliged to harmonise the time
>I have written routines in other languages to interpolate (generate a
>number of regularly spaced samples from the input series) or, what I
>"intrapolate" (generate a smaller number of regularly spaced samples
>the input series), so it wouldn't be too hard form me to write a
>that covers both, but I prefer not to reinvent wheels (unless my wheel
>markedly better!)
>Can anyone tell me if there is already a package that might cover what
>View this message in context:
>Sent from the R help mailing list archive at Nabble.com.
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list