Concatenate StringVector with Rcpp
问题 I can not figure out how to concatenate 2 strings with Rcpp; and the documentation did not help me while I suspect there is an obvious answer. http://gallery.rcpp.org/articles/working-with-Rcpp-StringVector/ http://gallery.rcpp.org/articles/strings_with_rcpp/ StringVector concatenate(StringVector a, StringVector b) { StringVector c; c= ??; return c; } I would expect this output : a=c("a","b"); b=c("c","d"); concatenate(a,b) [1] "ac" "bd" 回答1: There are probably a few different ways to