Re: [R] list manipulation

2010-12-12 Thread David Winsemius
On Dec 12, 2010, at 1:18 PM, andrija djurovic wrote: Hi R users! Does anyone know command similar to cbind for adding a column to a object of the list. For example on this list: c1 $`1` x11 x22 1 1 1 2 1 2 3 1 3 4 1 4 5 1 5 So item `1` is probably a data.frame. $`2` x11 x22 6 2 6 7 2

[R] list manipulation

2010-12-12 Thread andrija djurovic
Hi R users! Does anyone know command similar to cbind for adding a column to a object of the list. For example on this list: > c1 $`1` x11 x22 1 1 1 2 1 2 3 1 3 4 1 4 5 1 5 $`2` x11 x22 6 2 6 7 2 7 8 2 8 9 2 9 10 2 10 11 2 11 i would like to add column, named random created with - runif(5)-, to th

[R] documentation / An Intro to R / list manipulation

2009-06-04 Thread Robbie Morrison
Hello R users http://cran.r-project.org/doc/manuals/R-intro.html An Introduction to R 6.2 Constructing and modifying lists After a short but successful struggle with nested associative arrays (using named lists), I think the following documentation change might be beneficial. The existing

Re: [R] list manipulation

2008-05-07 Thread Thompson, David (MNR)
Beautiful! Thanks Jim. DaveT. >-Original Message- >From: jim holtman [mailto:[EMAIL PROTECTED] >Sent: May 6, 2008 07:33 PM >To: Thompson, David (MNR) >Subject: Re: [R] list manipulation > >The reason for the NULLs is that is the output of the lapply you are >

Re: [R] list manipulation

2008-05-06 Thread Thompson, David (MNR)
UE Which is far cleaner and more compact (which was probably what I was _actually_ looking for) than what I had started with. Thanx, DaveT. >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: May 6, 2008 02:47 PM >To: Thompson, David (MNR) >Subject:

[R] list manipulation

2008-05-06 Thread Thompson, David (MNR)
Hello, I have a set of one-liners (many thanks to previous responses from this list) that I use to look at newly imported data sets with functions like dim(), names(), str(), etc. within lapply(). Generally, these commands work for me but, I am apparently still missing some aspect of list manipula