Description Usage Arguments Details Value Author(s) See Also Examples
Duplicates each str
(e1
) string times
(e2
) times
and concatenates the results.
1 2 3 4 5 |
str, e1 |
a character vector of strings to be duplicated |
times, e2 |
an integer vector with the numbers of times to duplicate each string |
Vectorized over all arguments.
e1 %s*% e2
and e1 %stri*% e2
are synonyms
for stri_dup(e1, e2)
Returns a character vector.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Other join:
%s+%()
,
stri_flatten()
,
stri_join_list()
,
stri_join()
1 2 3 4 |
sh: 1: cannot create /dev/null: Permission denied
[1] "a" "aa" "aaa" "aaaa" "aaaaa"
[1] "aaaa" NA "babababa"
[1] "abcabcabcabc" "pqrstpqrst"
[1] "aaaaa"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.