[R] group vectors of different length
maeder at atmos.umnw.ethz.ch
Tue Mar 19 10:03:29 CET 2002
try vectors <- list(vector1,vectro2,...)
after that you can use list[[index]] (double the brackets) and
Francisco J Molina wrote:
> If I have several vectors of different length. Is there any way to group
> them in R and call them with an integer (and index)?
> Let us assume that the number of vectors is not known before I run the
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
Joerg Maeder .:|:||:..:.||.:: maeder at atmos.umnw.ethz.ch
Tel: +41 1 633 36 25 .:|:||:..:.||.::
PhD student at INSTITUTE FOR ATMOSPHERIC AND CLIMATE SCIENCE (IACETH)
ETH ZÜRICH Switzerland
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help