str_c()

  • str_c() = combine multiple strings or multiple character vectors
  • Vectorized just like base::paste0() but safer recycling rules
str_c("x", "y")
## [1] "xy"
str_c("x", "y", "z")
## [1] "xyz"
str_c("Hello ", c("John", "Susan"))
## [1] "Hello John"  "Hello Susan"