Learn R Programming

BBmisc (version 1.13)

strrepeat: Repeat and join a string

Description

Repeat and join a string

Usage

strrepeat(x, n, sep = "")

Value

character(1).

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

Run this code
strrepeat("x", 3)

Run the code above in your browser using DataLab