Ulangi string karakter dalam vektor karakter beberapa kali (yaitu, gabungkan jumlah salinan string yang bersangkutan).
strrep(x, times)
| Parameter | Deskripsi |
|---|---|
x |
a character vector, or an object which can be coerced to a character vector using as.character. |
times |
an integer vector giving the (non-negative) numbers of times to repeat the respective elements of x. |
# NOT RUN {
strrep("ABC", 2)
strrep(c("A", "B", "C"), 1 : 3)
## Create vectors with the given numbers of spaces:
strrep(" ", 1 : 5)
# }