strrepeat {BBmisc}R Documentation

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

strrepeat("x", 3)
## [1] "xxx"

[Package BBmisc version 1.7 Index]