powered by
Takes a character and creates a string that is the character repeated len times.
len
makeNstr(char, len)
A string that is char repeated len times.
char
character to be repeated
number of times to repeat char.
Charles Dupont
paste, rep
paste
rep
makeNstr(" ", 5) # \dontshow{ if(makeNstr(" ", 5) != " ") stop("makeNstr failed test") # }
Run the code above in your browser using DataLab