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
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
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] -
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
: [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
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
Inline below ...
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#..
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
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
-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
10 matches
Mail list logo