powered by
Duplicates each string times times and concatenates the results.
times
stri_dup(str, times)
a character vector of strings to be duplicated
an integer vector with the numbers of times to duplicate each string
Returns a character vector of the same length as str.
str
Vectorized over str and times.
Other join: %s+%(), stri_flatten(), stri_join_list(), stri_join()
%s+%()
stri_flatten()
stri_join_list()
stri_join()
# NOT RUN { stri_dup("a", 1:5) stri_dup(c("a", NA, "ba"), 4) stri_dup(c("abc", "pqrst"), c(4, 2)) # }
Run the code above in your browser using DataLab