Description Usage Arguments See Also Examples
Given lists X and Y, this functions replaces the commonly named objects in X with those of Y and appends the uncommon Y components to X. List X is returned as the merged list.
1 | mergeList(x, y)
|
x |
a list of named objects. |
y |
a list of named objects. |
1 2 3 4 5 6 7 8 9 10 11 | ## develop lists
dinner <- list(Entree="Spaghetti and Meatballs",
Starter="Caesar Salad", Dessert="Spumoni",
Beverage="Wine and Water")
## oops, we are all out of spumoni and we just got
## some tiramisu in from the local bakery
change <- list(Dessert="Tiramisu",Note="Please tip your waiter")
## merge the lists and prett-print
prettyPrintList(mergeList(dinner, change), header="What's for dinner?")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.