[R] Named components in a list

2011-11-10 Thread JulioSergio
I'm studying lists and I came to an example where L $name [1] Fred $wife [1] Mary $no.children [1] 4 $child.ages [1] 4 7 9 then following the instructions to extend the list with a new component, I executed: L[5] -list(NewName=something) and the new list I got was: L $name [1] Fred

Re: [R] Named components in a list

2011-11-10 Thread Sarah Goslee
Hi, On Thu, Nov 10, 2011 at 1:55 PM, JulioSergio julioser...@gmail.com wrote: I'm studying lists and I came to an example where L $name [1] Fred $wife [1] Mary $no.children [1] 4 $child.ages [1] 4 7 9 then following the instructions to extend the list with a new component, I

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Sarah Goslee sarah.goslee at gmail.com writes: Hi, You probably want: L[NewName] - something or one of the many potential variants. Thanks, Sara, That works! However, following the idea that the syntactic notation L[i] means a sublist of L, again the syntactic notation L[i] -

Re: [R] Named components in a list

2011-11-10 Thread Bert Gunter
Inline Below. -- Bert On Thu, Nov 10, 2011 at 11:50 AM, JulioSergio julioser...@gmail.com wrote: Sarah Goslee sarah.goslee at gmail.com writes: Hi, You probably want: L[NewName] - something or one of the many potential variants. Thanks, Sara, That works! However, following

Re: [R] Named components in a list

2011-11-10 Thread William Dunlap
: [R] Named components in a list Sarah Goslee sarah.goslee at gmail.com writes: Hi, You probably want: L[NewName] - something or one of the many potential variants. Thanks, Sara, That works! However, following the idea that the syntactic notation L[i] means a sublist of L

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Bert Gunter gunter.berton at gene.com writes: Inline Below. Well, Bert, then the manual where I found the example must be wrong. It is: http://cran.r-project.org/doc/manuals/R-intro.html#Constructing-and-modifying- lists And textually it says: Lists, like any subscripted object, can be

Re: [R] Named components in a list

2011-11-10 Thread Jeff Newmiller
Inline below ... --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#..

Re: [R] Named components in a list

2011-11-10 Thread William Dunlap
by subscripting.) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of JulioSergio Sent: Thursday, November 10, 2011 2:02 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Named components

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Jeff Newmiller jdnewmil at dcn.davis.ca.us writes: Well, Bert, then the manual where I found the example must be wrong. It is: http://cran.r-project.org/doc/manuals/R-intro.html#Constructing-and- modifying- lists And textually it says: Lists, like any subscripted object, can be

Re: [R] Named components in a list

2011-11-10 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of JulioSergio Sent: Thursday, November 10, 2011 2:59 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Named components in a list Jeff Newmiller jdnewmil at dcn.davis.ca.us