repeat.char: Replicates the given charachter to make a longer character...

View source: R/rutils.R

repeat.charR Documentation

Replicates the given charachter to make a longer character string

Description

Replicates the given charachter to make a longer character string

Usage

repeat.char(char, N)

Arguments

char

a character: Character to be replicated

N

An integer: number of times char should be repeated

Value

A character string

Examples

repeat.char('X', 3)
[1] "XXX"


genpack/rutils documentation built on Jan. 24, 2025, 3:46 p.m.