Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makeNstr

creates a string that is a repeat of a substring


Description

Takes a character and creates a string that is the character repeated len times.

Usage

makeNstr(char, len)

Arguments

char

character to be repeated

len

number of times to repeat char.

Value

A string that is char repeated len times.

Author(s)

Charles Dupont

See Also

Examples

makeNstr(" ", 5)

Hmisc

Harrell Miscellaneous

v4.5-0
GPL (>= 2)
Authors
Frank E Harrell Jr <fh@fharrell.com>, with contributions from Charles Dupont and many others.
Initial release
2021-02-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.