Skip to content
Prev 207245 / 398503 Next

loop on list levels and names

data.table is the package name too. Make sure you find ?"[.data.table" which 
is linked from ?data.table.
You could just do a mean of one variable first, and then build it up from 
there  e.g.  dataset[, mean(epLsar), by="SPECSHOR,BONE"].
To get multiple columns of output,  wrap with DT() like this   dataset[, 
DT(mean(epLsar),min(epLsar)), by="SPECSHOR,BONE"]
Btw, v1.3 on r-forge fixes a version check warning with v1.2 on R2.10+ (not 
fixed by me but thanks to a contributor) so if you can't live with the 
warning messages, you can install v1.3 from r-forge like this :
install.packages("data.table",repos="http://r-forge.r-project.org")

Best of luck.

"Ivan Calandra" <ivan.calandra at uni-hamburg.de> wrote in message 
news:4B59D93C.5080204 at uni-hamburg.de...
Thanks for your advice, I will work on it then!
Just one last question. In which package can I find the function
data.table?
Ivan

Le 1/22/2010 17:18, Matthew Dowle a ?crit :