Displaying 3 results from an estimated 3 matches for "alloc_gb".
Did you mean:
alloc_bh
2009 Apr 15
3
How to apply a function to all combinations of the values of 2 or more variables?
...'ve figured out how to do what I want with one by value.
by(mf,mf$centre,summary)
Centre is one of the columns in the data frame "mf" which looks like
this:
names(mf)
[1] "centre" "complex" "appl" "pool" "month" "alloc_gb"
I'd like to analyze, for example, by complex within centre. This has a
manageable number of combinations:
table(mf$centre,mf$complex)
A B C D E F G H
I J K L
B 0 0 0 0 0 0...
2009 Apr 22
1
How to make a time series object from a data frame containing dates.
Hi, All
I have a data frame like this.
> names(x)
[1] "month" "alloc_gb"
One of the columns contains the dates I want to use:
> data.class(x$month)
[1] "yearmon"
I would like to make a time series object out of this. However the ts
function seems to require me to spell out the starting date. Is there a
way to tell ts to use the date column I alread...
2009 Apr 24
0
By= levels with the Hmisc summarize function.
Hi, All
I have a data frame as follows:
> attach(mf)
> names(mf)
[1] "centre" "complex" "appl" "pool" "month" "alloc_gb"
I want to summarize this as follows:
agg<-summarize(alloc_gb,by=llist(centre,complex,appl,month),FUN=sum,
na.rm=TRUE)
That seems to run fine but there something odd about the output. The
first 3 by levels are as expected, for example
> levels(agg$centre)
[1] "B" "G&qu...