Re: [R] interpolation to montly data

2012-06-16 Thread Gabor Grothendieck
On Sat, Jun 16, 2012 at 8:19 AM, stef salvez wrote: > I have a panel data set (in MS excel)  like the one below > > >  1         "23/11/08"            2 > 1   "28/12/08"                   3 > 1    "25/01/09"                   4 > 1   "22/02/09"                   5 > 1    "29/03/09"                

Re: [R] interpolation to montly data

2012-06-16 Thread Miguel Manese
Hi Ken, Stef, We can make your script more elegant like below: On Sun, Jun 17, 2012 at 12:52 AM, Ken wrote: > > stef salvez googlemail.com> writes: [snip] > #load library > library(plyr) > > # utility function > mean.var = function(df, var){ mean(df[[var]], na.rm = T)}; > > # create example

Re: [R] interpolation to montly data

2012-06-16 Thread Ken
stef salvez googlemail.com> writes: > > I would like to clarify that since each observation is obtained every > 28 days, each such observation is a 4-week average > > thanks > > On 6/16/12, stef salvez googlemail.com> wrote: > > I have a panel data set (in MS excel) like the one below > > >

Re: [R] interpolation to montly data

2012-06-16 Thread stef salvez
I would like to clarify that since each observation is obtained every 28 days, each such observation is a 4-week average thanks On 6/16/12, stef salvez wrote: > I have a panel data set (in MS excel) like the one below > > > 1 "23/11/08"2 > 1 "28/12/08" 3

[R] interpolation to montly data

2012-06-16 Thread stef salvez
I have a panel data set (in MS excel) like the one below 1 "23/11/08"2 1 "28/12/08" 3 1"25/01/09" 4 1 "22/02/09" 5 1"29/03/09" 6 1 "26/04/09" 32 1 "24/05/09"