https://github.com/hadley/dplyr
Raw File
Tip revision: bfc37e1b54aac7a094622a6fc874e6a869ba3957 authored by Romain Francois on 28 April 2020, 15:34:35 UTC
use funs::grouped_mean() from https://github.com/r-lib/funs/pull/50
Tip revision: bfc37e1
combine.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprec-combine.R
\name{combine}
\alias{combine}
\title{Combine vectors}
\usage{
combine(...)
}
\arguments{
\item{...}{Vectors to combine.}
}
\description{
\Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")}

\code{combine()} is deprecated in favour of \code{\link[vctrs:vec_c]{vctrs::vec_c()}}. \code{combine()}
attempted to automatically guess whether you wanted \code{\link[=c]{c()}} or \code{\link[=unlist]{unlist()}},
but could fail in surprising ways. We now believe it's better to be explicit.
}
\examples{
f1 <- factor("a")
f2 <- factor("b")

combine(f1, f2)
# ->
vctrs::vec_c(f1, f1)

combine(list(f1, f2))
# ->
vctrs::vec_c(!!!list(f1, f2))
}
\keyword{internal}
back to top