Inline Below.
-- Bert

On Thu, Nov 10, 2011 at 11:50 AM, JulioSergio <[email protected]> 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 the idea that the syntactic notation L[i] means
> a sublist of L, again the syntactic notation
>
> L[i] <- list(Name=Value)
>
> should mean that the sublist is now assigned the list with the a unique
> named
> element. So I insist this is either a bug or an inconsistency of the
> language.
>

... or you don't understand what's going on!  See the R Language Definition
sections on lists and their subscripting to correct your misunderstanding.

-- Bert

>
> Thanks again,
>
> Sergio.
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to