1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/deprec-funs.R 3\name{funs} 4\alias{funs} 5\title{Create a list of function calls} 6\usage{ 7funs(..., .args = list()) 8} 9\arguments{ 10\item{...}{<\code{\link[=dplyr_data_masking]{data-masking}}> A list of functions 11specified by: 12\itemize{ 13\item Their name, \code{"mean"} 14\item The function itself, \code{mean} 15\item A call to the function with \code{.} as a dummy argument, 16\code{mean(., na.rm = TRUE)} 17} 18 19The following notations are \strong{not} supported, see examples: 20\itemize{ 21\item An anonymous function, \code{function(x) mean(x, na.rm = TRUE)} 22\item An anonymous function in \pkg{purrr} notation, \code{~mean(., na.rm = TRUE)} 23}} 24 25\item{.args, args}{A named list of additional arguments to be added to all 26function calls. As \code{funs()} is being deprecated, use other methods to 27supply arguments: \code{...} argument in \link[=summarise_at]{scoped verbs} or make 28own functions with \code{\link[purrr:partial]{purrr::partial()}}.} 29} 30\description{ 31\Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")} 32 33\code{funs()} is deprecated; please use \code{list()} instead. We deprecated this 34function because it provided a unique way of specifying anonymous functions, 35rather than adopting the conventions used by purrr and other packages 36in the tidyverse. 37} 38\examples{ 39funs("mean", mean(., na.rm = TRUE)) 40# -> 41list(mean = mean, mean = ~ mean(.x, na.rm = TRUE)) 42 43funs(m1 = mean, m2 = "mean", m3 = mean(., na.rm = TRUE)) 44# -> 45list(m1 = mean, m2 = "mean", m3 = ~ mean(.x, na.rm = TRUE)) 46} 47\keyword{internal} 48