[R] Elementwise c() for lists
Trenkler, Dietrich
dtrenkler at nts6.oec.uni-osnabrueck.de
Mon Mar 20 16:44:45 CET 2000
I have two lists of equal lengths. Each one consists of vectors. Is
there an elegant way to combine them elementwise? Elegant means: without
loops.
For instance, for
> jja_list(1:3,4:7)
> jjb_list(rep(0,4),(2,5))
I would like to get:
> list(c(1:3,rep(0,4)),c(4:7,rep(2,5))).
--- D.Trenkler ---
************************************************************************
*********
Dietrich Trenkler
(trenkler at oec.uni-osnabrueck.de)
Statistik / Empirische Wirtschaftsforschung
Universitaet Osnabrueck
Rolandstrasse 8 Phone: +49(0)
541-969-2753
D-49069 Osnabrueck Fax : +49(0) 541-969-2745
GERMANY
************************************************************************
*********
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
mailing list