Code
funs(fn = bar)
Warning <lifecycle_warning_deprecated>
`funs()` was deprecated in dplyr 0.8.0.
Please use a list of either functions or lambdas:
# Simple named list:
list(mean = mean, median = median)
# Auto named with `tibble::lst()`:
tibble::lst(mean, median)
# Using lambdas
list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
Output
<fun_calls>
$ fn: bar(.)
Code
funs(function(si) {
mp[si]
})
Error <rlang_error>
`function(si) {
mp[si]
}` must be a function name (quoted or unquoted) or an unquoted call, not `function`.
Code
funs(~ mp[.])
Error <rlang_error>
`~mp[.]` must be a function name (quoted or unquoted) or an unquoted call, not `~`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.