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"
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
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
> >
>
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
4 matches
Mail list logo