[R] Listing function

Schmitt, Corinna Corinna.Schmitt at igb.fraunhofer.de
Mon Mar 26 15:26:03 CEST 2007


Hallo,

I build a list by the following way:

Lst = list(name="Fred", wife="Mary", no.children=3, cild.ages=c(4,7,9))

I know how I can extract the information one by one. But now I want to
add a new entry which looks like

name="Barney", wife="Liz", no.children=2, cild.ages=c(3,5)

How can I add this information to Lst without overwriting the first
entry?
How can I then extract the corresponding information if I have both
entries in Lst?

Thanks for helping,

Corinna



More information about the R-help mailing list