Skip to content
Prev 8970 / 15075 Next

Unexpected behavior from sprintf()

On 12-04-24 4:24 PM, Joran Elias wrote:
I would say it's probably user-error:  the docs don't say what that 
should do.   Numeric formats would pad with zeros, but I don't think it 
says what would happen if you ask for zero padding on a string.

In any case, R just passes a format like that to the C printf function. 
  So if it's a bug, it's in the C run-time, not in R.

Duncan