Learn R Programming

bruceR (version 2023.9)

rep_char: Repeat a character string for many times and paste them up.

Description

Repeat a character string for many times and paste them up.

Usage

rep_char(char, rep.times)

Value

Character string.

Arguments

char

Character string.

rep.times

Times for repeat.

Examples

Run this code
rep_char("a", 5)

Run the code above in your browser using DataLab