> -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
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
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#
Inline below ...
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Researc
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
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"
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
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
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
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
10 matches
Mail list logo