Repeats a string n times and joins the results.
Usage
strrepeat(x, n, sep = "")
Arguments
- x
[character]
Vector of characters.
- n
[integer(1)]
Times the vector x is repeated.
- sep
[character(1)]
Separator to use to collapse the vector of characters.
Examples
strrepeat("x", 3)
#> [1] "xxx"