Skip to content
Prev 42806 / 398506 Next

empty string

Thomas Lumley wrote:

            
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