https://github.com/hadley/dplyr
Raw File
Tip revision: 3665fafc17aca6a72282498e631a04bb18e738ca authored by Hadley Wickham on 31 March 2020, 18:51:49 UTC
Ensure that bind_cols() always returns the type of the LHS
Tip revision: 3665faf
vars.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colwise.R
\name{vars}
\alias{vars}
\title{Select variables}
\usage{
vars(...)
}
\arguments{
\item{...}{<\code{\link[=dplyr_tidy_select]{tidy-select}}> Variables to include/exclude
in mutate/summarise. You can use same specifications as in \code{\link[=select]{select()}}.
If missing, defaults to all non-grouping variables.}
}
\description{
\code{vars()} was only needed for the scoped verbs, which have been superseded
by the use of \code{\link[=across]{across()}} in an existing verb. See \code{vignette("colwise")} for
details.

This helper is intended to provide equivalent semantics to
\code{\link[=select]{select()}}. It is used for instance in scoped summarising and
mutating verbs (\code{\link[=mutate_at]{mutate_at()}} and \code{\link[=summarise_at]{summarise_at()}}).

Note that verbs accepting a \code{vars()} specification also accept a
numeric vector of positions or a character vector of column names.
}
\seealso{
\code{\link[=all_vars]{all_vars()}} and \code{\link[=any_vars]{any_vars()}} for other quoting
functions that you can use with scoped verbs.
}
back to top