Skip to content
Prev 50605 / 398500 Next

counting number of objects in a list

you mean something like:

x <- list(a=1:10, b=matrix(rnorm(5*6), 5, 6), c=5)
length(x)

Best,
Dimitris

----
Dimitris Rizopoulos
Doctoral Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/396887
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm



----- Original Message ----- 
From: "Vumani Dlamini" <dvumani at hotmail.com>
To: <r-help at stat.math.ethz.ch>
Sent: Tuesday, June 08, 2004 2:22 PM
Subject: [R] counting number of objects in a list
thus
http://www.R-project.org/posting-guide.html