R Language Duplicating strings


Example

stri_dup("abc",3)
# [1] "abcabcabc"

A base R solution that does the same would look like this:

paste0(rep("abc",3),collapse = "")
# [1] "abcabcabc"