Skip to content
Prev 8974 / 15075 Next

Unexpected behavior from sprintf()

On 12-04-24 6:20 PM, David Winsemius wrote:
But those were character objects:  there was an explicit as.character(). 
  You get the same padding if you do

sprintf('%05s',letters[1:10])

i.e. 0 padding on OSX, blank padding on Windows.  (I haven't tried any 
others.)

Duncan Murdoch

In