defaults | R Documentation |
Convenient method to specify default elements to your list
defaults(x, def)
x |
list of values (elements in list should also have names associated) |
def |
list of defaults |
list with any default elements added
this code drew inspiration from an equivalent function in the plyr package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.