repeated: Repeated Substring

View source: R/utils.R

repeatedR Documentation

Repeated Substring

Description

Repeated Substring

Usage

repeated(x, n)

Arguments

x

substring to be repeated and pasted together to a new string

n

number of times to repeat the substring

Value

vector of character of length one

Examples

repeated("no ", 2)
repeated("yes ", 3)
repeated("yes no ", 3)


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.