t; or to use calendar quarters its just:
>
> aggregate(z, as.yearqtr, mean)
>
> In the zoo package see ?zoo, ?aggregate.zoo, ?yearqtr, ?yearmon
> and the three zoo vignettes.
>
> On Mon, Aug 18, 2008 at 2:38 PM, Gavin <[EMAIL PROTECTED]> wrote:
> > On Mon, 2008-
Dear Gavin,
This is really great, thank you! I created some long loops to get rid of
extra months at the beginning and the end of my data but your code is great
for putting it then together quarterly.
thanks again,
Denise
On Mon, 2008-08-18 at 14:31 +0100, Denise Xifara wrote:
> Thank you v
Thank you very much Stephen, but how will aggregate deal with months that
fall outside annual quarters? eg, one extra month at the end of the dataset?
2008/8/18 stephen sefick <[EMAIL PROTECTED]>
> ?aggregate
> may do what you want
>
> On Mon, Aug 18, 2008 at 8:19 AM, Denis
Dear R users,
I have a dataframe where column is has countries, column 2 is dates
(monthly) for each countrly, the next 10 columns are my factors where I have
measurements for each country and for each date. I have attached a sample
of the data in csv format with the data for 3 countries.
I wou
Dear R users,
I have run into a very unexpected problem and I was hoping someone could
explain it to me.
I have a 650 000 by 12 matrix and I want to perform a rolling regression on
it, width 36 or 48, using the package performanceAnalytics.
ie: rol.lm<-rollingRegression(lm(y~x1+x2+x3+x4+x5),data
Dear All and Mark,
Given a dataset that I have called dat, I was hoping to speed up the
following loop:
for(i in 1:835353){
for(j in 1:86){
if (is.na(dat[i,j])==TRUE){dat[i,j]<-0 }}}
Actually I am also having a memory problem. I get the following:
Error: cannot allocate vector of size 3.2 Mb
Dear all,
I have the following data in excel:
day1 y 1 2 3 2 3 x1 0.2 0.3 0.4 0.3 0.2 x2 7 3.4 2 8 6 day2 y 2 4 3
2 2 x1 0.4 0.5 0.3 0.3 0.2 x2 7 8 9.1 6 5
I have the following problems:
first of all, when I ask R to read the file (with the package xlsReadWrite
and the command read.xls)
Hi all,
I was wondering whether there is a standard method to carry out fama-macbeth
regressions in R. I have spent the last few hours looking around the help
pages but nothing seems to be written about this.
Thanks a lot!
[[alternative HTML version deleted]]
Hi all,
I was wondering whether there is a standard method to carry out fama-macbeth
regressions in R. I have spent the last few hours looking around the help
pages but nothing seems to be written about this.
Thanks a lot!
[[alternative HTML version deleted]]
9 matches
Mail list logo