powered by
string
times
nstr(string, times)
paste
rep
nstr(c("a"), c(0,3,4)) nstr(c("a", "b", "c"), c(1,2,3)) nstr(c("a", "b", "c"), 4)
Run the code above in your browser using DataLab