[R] List of lists???

From: Stephane CRUVEILLER <scruveil_at_genoscope.cns.fr>
Date: Wed 01 Feb 2006 - 01:30:41 EST


Hi,

I would like to perform computations on some variables belonging to the same dataframe. For instance my data frame has the following shape:

        toto1   toto2   toto3   toto4   toto5
1       1       2       3       4       5
2       6       7       8       9       10

I would like to perform the calculation on c("toto1","toto2","toto3") and then the same calculation on c("toto4","toto5"). Is there a way to tell R to do it using a loop (a list of lists)??

Stephane.

-- 
==========================================================
Stephane CRUVEILLER Ph. D.
Genoscope - Centre National de Sequencage
Atelier de Genomique Comparative
2, Rue Gaston Cremieux   CP 5706
91057 Evry Cedex - France
Phone: +33 (0)1 60 87 84 58
Fax: +33 (0)1 60 87 25 14
EMails: scruveil@genoscope.cns.fr ,scruvell@infobiogen.fr

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Feb 01 01:44:02 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:15 EST