Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

combine

Combine vectors


Description

[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

combine(...)

Arguments

...

Vectors to combine.

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))

dplyr

A Grammar of Data Manipulation

v1.0.6
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre] (<https://orcid.org/0000-0003-4757-117X>), Romain François [aut] (<https://orcid.org/0000-0002-2444-4226>), Lionel Henry [aut], Kirill Müller [aut] (<https://orcid.org/0000-0002-1416-3412>), RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.