[R-sig-finance] average values for time series

Patrick Burns patrick at burns-stat.com
Wed Apr 27 13:22:09 CEST 2005


One approach would be to give a 'class' to your objects like
"commodity" and "equity", and then write 'print' or 'summary'
methods for those classes.

You can learn about (S3) methods in S Poetry and elsewhere.

Patrick Burns

Burns Statistics
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")

Jonathan Q. wrote:

>New to R, currently use FAME.  One of the things I like about FAME is
>that if I have a series, say the near month for a commodity, I can set
>the series property so when i view weekly data, the data is the
>average of the daily data.  alternatively, for other series like stock
>prices I can have the series always display the last value (i.e.,
>monthly would take last value in month vs the average).  also able to
>use with a cummulative as well.
>
>does R/RMetrics have a way to do this as well??
>
>_______________________________________________
>R-sig-finance at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>
>
>  
>



More information about the R-sig-finance mailing list