Skip to content
Prev 112205 / 398498 Next

Listing function

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