[R] moving average method for time series objects

2004-09-23 Thread Schwarz,Paul
Dear R-Help readers, I suspect that this question must be a FAQ, but my investigation of the archives has not been very revealing. Is there an R function for calculating moving averages of time series objects? Thank you for your time and patience. -Paul Paul Schwarz, Ph.D. Associate

[R] using hist() with tapply()

2004-09-01 Thread Schwarz,Paul
Hi, I've been passing the hist() function to tapply() to quickly generate histograms based on the list of factors supplied to tapply(). However, I have not figured out how to generate titles for each of the histograms, which paste in the unique values of the list factors as part of the

[R] win.metafile() problem -- possible bug?

2003-10-20 Thread Schwarz, Paul
As a followup to a previous posting regarding the win.metafile() function, I've been having some problems as well. In my case, I've been converting some scripts from S-SPLUS to R that create graphs in order to take advantage of R's plotmath capabilities. In the sample code shown below, the axis

[R] help with legend()

2003-10-15 Thread Schwarz, Paul
I am converting some S-PLUS scripts that I use for creating manuscript figures to R so that I can take advantage of the plotmath capabilities. In my S-PLUS scripts I like to use the key() function for adding legends to plots, and I have a couple of questions regarding using the legend() function