makeNstr function

creates a string that is a repeat of a substring

creates a string that is a repeat of a substring

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

makeNstr(char, len)

Arguments

  • char: character to be repeated
  • len: number of times to repeat char.

Returns

A string that is char repeated len times.

Author(s)

Charles Dupont

See Also

paste, rep

Examples

makeNstr(" ", 5)