funs | R Documentation |
funs()
is deprecated; please use list()
instead. We deprecated this
function because it provided a unique way of specifying anonymous functions,
rather than adopting the conventions used by purrr and other packages
in the tidyverse.
funs(..., .args = list())
... |
<
The following notations are not supported, see examples:
|
.args, args |
A named list of additional arguments to be added to all
function calls. As |
funs("mean", mean(., na.rm = TRUE))
# ->
list(mean = mean, mean = ~ mean(.x, na.rm = TRUE))
funs(m1 = mean, m2 = "mean", m3 = mean(., na.rm = TRUE))
# ->
list(m1 = mean, m2 = "mean", m3 = ~ mean(.x, na.rm = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.