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

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Jeff Newmiller 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

Re: [R] Named components in a list

2011-11-10 Thread William Dunlap
tat.math.ethz.ch > Subject: Re: [R] Named components in a list > > Bert Gunter 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#

Re: [R] Named components in a list

2011-11-10 Thread Jeff Newmiller
Inline below ... --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Researc

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Bert Gunter 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 extended by speci

Re: [R] Named components in a list

2011-11-10 Thread William Dunlap
ergio > Sent: Thursday, November 10, 2011 11:51 AM > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] Named components in a list > > Sarah Goslee gmail.com> writes: > > > > > Hi, > > > > > You probably want: > > L["NewName"] <- "something"

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 wrote: > Sarah Goslee 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 th

Re: [R] Named components in a list

2011-11-10 Thread JulioSergio
Sarah Goslee 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] <- list(N

Re: [R] Named components in a list

2011-11-10 Thread Sarah Goslee
Hi, On Thu, Nov 10, 2011 at 1:55 PM, JulioSergio 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 > exec

[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