Grokbase Groups R r-help March 2002
FAQ
A list can have elements of different type, hence vectors
of different length, i.e.:

v1 <- 1:10
v2 <- 1:3
v3 <- 100:1000

milista <- list(v1=v1,v2=v2,v3=v3)

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es

On Mon, 18 Mar 2002, 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
script.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupr-help @
categoriesr
postedMar 19, '02 at 4:21a
activeMar 19, '02 at 9:26a
posts5
users5
websiter-project.org
irc#r

People

Translate

site design / logo © 2017 Grokbase