[R] Adding elements to existing lists

jim holtman jholtman at gmail.com
Sat Feb 16 18:03:37 CET 2008


To add new elements to a list, just add them:

yourList[["newElement"]] <- yourObject

Is this what you were asking about?

On Feb 16, 2008 10:20 AM, Mag. Ferri Leberl <ferri.leberl at gmx.at> wrote:
> Dear everybody!
> Is there a command to add elements to an existing list, at best
> excluding the addition of already included ones?
> Thank you in advance.
> Yours,
> Mag. Ferri Leberl
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list