empty string
Thomas Lumley wrote:
paste(rep(" ",n), collapse="")
gives a string of n spaces.
Is that more or less efficient/faster or slower than using sprintf:
sprintf(paste("%",n,"s",sep='')," ")
A quick test shows it to take about two-thirds the CPU time of the
paste(rep()) solution.
Not that it matters - I cant see something like this ever being a
significant part of any calculation!
Baz