mergeList | R Documentation |
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.
mergeList(x, y)
x |
a list of named objects. |
y |
a list of named objects. |
prettyPrintList
.
## 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.