combine: Combine vectors

Description Usage Arguments Examples

View source: R/deprec-combine.R

Description

\Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")}

combine() is deprecated in favour of vctrs::vec_c(). combine() attempted to automatically guess whether you wanted c() or unlist(), but could fail in surprising ways. We now believe it's better to be explicit.

Usage

1

Arguments

...

Vectors to combine.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
f1 <- factor("a")
f2 <- factor("b")

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

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

javifar/TIDYVERSE-DPLYR documentation built on Dec. 20, 2021, 9:08 p.m.