BBmisc (version 1.10)

strrepeat: Repeat and join a string

Description

Repeat and join a string

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.

Value

character(1).

Examples

Run this code
strrepeat("x", 3)

Run the code above in your browser using DataCamp Workspace