Re: [R] Is there a time series resampling function ?

2015-09-11 Thread AltShift
In case you were wondering, I ended up writing a function that calls
spline().  The resample() function wasn't suitable for my requirement.

But, thanks for steering me in the right direction!




--
View this message in context: 
http://r.789695.n4.nabble.com/Is-there-a-time-series-resampling-function-tp4711907p4712133.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Is there a time series resampling function ?

2015-09-08 Thread AltShift
Thanks, Sergio.

Yes, resample looks promising. I'll try it out now.




--
View this message in context: 
http://r.789695.n4.nabble.com/Is-there-a-time-series-resampling-function-tp4711907p4711987.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Is there a time series resampling function ?

2015-09-08 Thread AltShift
Cheers, mate!

I thought there must be some obscure way to search from within CRAN.  After
reading your reply I tried Googling "CRAN signal processing".  Much better. 
(D'oh!)




--
View this message in context: 
http://r.789695.n4.nabble.com/Is-there-a-time-series-resampling-function-tp4711907p4711986.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Is there a time series resampling function ?

2015-09-07 Thread AltShift

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

Hi Jeff,

If you re-read my original post you will see the word interpolate, spelled
correctly. I also used the made-up word "intrapolate" (I thought that using
quotes in the post would make this obvious) because I am describing a
process that is complementary to interpolation. 

My actual problem is that I don't know how to search CRAN effectively. I'm
trying to address this deficiency now.




--
View this message in context: 
http://r.789695.n4.nabble.com/Is-there-a-time-series-resampling-function-tp4711907p4711977.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Is there a time series resampling function ?

2015-09-06 Thread AltShift
I need a function for regularising the time base of electronically acquired
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 have
developed signal processing functions that assume a constant sample rate, so
I need to modify my input data vectors so that this assumption becomes true.
Furthermore, if I want to combine signals from different sources that have
different sampling rates, I will be obliged to harmonise the time bases,
somehow.

I have written routines in other languages to interpolate (generate a larger
number of regularly spaced samples from the input series) or, what I call,
"intrapolate" (generate a smaller number of regularly spaced samples from
the input series), so it wouldn't be too hard form me to write a function
that covers both, but I prefer not to reinvent wheels (unless my wheel is
markedly better!)

Can anyone tell me if there is already a package that might cover what I
need?




--
View this message in context: 
http://r.789695.n4.nabble.com/Is-there-a-time-series-resampling-function-tp4711907.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.