[R] Named components in a list
JulioSergio
juliosergio at gmail.com
Thu Nov 10 20:50:35 CET 2011
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.
Thanks again,
Sergio.
More information about the R-help
mailing list