if by array, you just mean vector, then the following would work .
stack(myList)
If you want to take off the names of myList that get put in the second
column
stack(myList)[,-2,drop=FALSE]
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Aydemir, Zava
(FID)
Sent: Thursday, July 05, 2007 8:25 AM
To: r-help at stat.math.ethz.ch
Subject: [R] converting list to an array
Hi,
I have a list myList (see below) that consists of id's
$'7',....,$'10'
and each id has an individual array, the length of which can vary from
id to id.
How can I convert this list into an array, ie. stacking the individual
arrays into one large array?
Thanks
Zava
myList:
$`7`
[1] 20050201 20050301 20050401 20050501
$`8`
[1] 20050201 20050301 20050401 20050501
$`9`
[1] 20050201 20050301 20050401 20050501
$`10`
[1] 20050101 20050201 20050301 20050401 20050501
--------------------------------------------------------
This is not an offer (or solicitation of an offer) to
buy/se...{{dropped}}
______________________________________________
R-help at 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
and provide commented, minimal, self-contained, reproducible code.
--------------------------------------------------------
This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}