Description Usage Arguments Examples
Turn a collection of functions into binary operators. For
example, create the binary operator %cbind%
from the function
cbind()
by calling grow(cbind)
. Then,
you can call sleep %cbind% sleep %cbind% sleep
to add
to the columns of a data frame while avoiding cumbersome parentheses.
1 | grow(..., list = character(0), from = parent.frame(), to = parent.frame())
|
... |
characters or symbols, names of functions to make into binary operators. |
list |
character vector of names of functions to make into binary operators |
from |
package (character scalar) or environment to look for functions to turn into binary operators. |
to |
environment to store the new binary operators. |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.