Learn R Programming

cursr (version 0.1.0)

repch: Repeat a Character

Description

Repeat a character n times and concatenate into a single value.

Usage

repch(x, n)

Arguments

x

character to be repeated

n

number of times to be repeated

Value

character vector

Examples

Run this code
# NOT RUN {
repch("abc", 5)

# }

Run the code above in your browser using DataLab