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.
combine(...)Vectors to combine.
f1 <- factor("a")
f2 <- factor("b")
combine(f1, f2)
#> Warning: `combine()` was deprecated in dplyr 1.0.0.
#> Please use `vctrs::vec_c()` instead.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
#> [1] a b
#> Levels: a b
# ->
vctrs::vec_c(f1, f1)
#> [1] a a
#> Levels: a
combine(list(f1, f2))
#> [1] a b
#> Levels: a b
# ->
vctrs::vec_c(!!!list(f1, f2))
#> [1] a b
#> Levels: a b