Dear all,
I'm stuck with a problem using plyr to process a rather large junk of data.
What I'm trying to do is applying a moving average to all the subparts of the
dataframe (the example data can be found here
https://dl.dropboxusercontent.com/u/2414056/testData.Rdata).
require(plyr)
load("testData.Rdata")
applyfilter<-function(x){
return(filter(x,rep(1/5, times=5)))
}
data.trash<-ddply(data, .(FileNo, ChannelNo), transform,
filtered=applyfilter(ChannelB))
The result from this is
Error in attributes(output[[var]]) <- attributes(value) : invalid time series
parameters specified
though the number of return values seems right to me.
Do you have any thoughts or suggestions?
Many thanks,
Ingo
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
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.