Steven Sanderson smooshes strings together:
String concatenation is a fundamental operation in data manipulation and cleaning. If you are working in R, mastering string concatenation will significantly enhance your data processing capabilities. This blog post will cover different ways to concatenate strings using base R, the
stringr
,stringi
, andglue
packages. Let’s go!
Read on for examples using paste()
, paste0()
, str_c()
, stri_c()
, and glue()
.