sprintf, check number of parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sprintf, check number of parameters

Matthias Gondan
Dear R developers,

I am wondering if this should raise an error or a warning.

> sprintf('%.f, %.f', 1, 2, 3)
[1] "1, 2"

I am aware that R has „numbered“ sprintf arguments (sprintf('%1$.f', …), and in that case, omissing of specific arguments may be intended. But in the usual syntax, omission of an argument is probably a mistake.

Thank you for your consideration.

Best wishes,

Matthias


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel