Description Usage Arguments See Also Examples
Prints a list of named objects in a two column format, with the names of objects in the list in the first column and a summary of the object in the second. The user can control the justification and separation character between the columns.
1 | prettyPrintList(x, header=NULL, justify="left", sep=":")
|
x |
a list of named objects. |
header |
a character string defining the header. Default: |
justify |
a character string defining the aligment format for the
objects in the list. Choices are |
sep |
a siingle character used to divide the list object names from their corresponding values. |
1 2 3 4 5 6 7 | ## develop menu
dinner <- list(Entree="Spaghetti and Meatballs",
Starter="Caesar Salad", Dessert="Spumoni",
Beverage="Wine and Water")
## pretty-print the menu
prettyPrintList(dinner, header="What's for dinner?")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.