Slightly modified versions of plyr's functions, which give access to the current item's name within the applied function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
.data |
Data object passed to the corresponding plyr function |
.fun |
Function to apply to each – margin – element of |
... |
extra arguments passed to corresponding plyr function |
.margins |
Margin over which to apply |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.