# Format a single-entry character vector with numbering mechanism
rprintf("Hello, {1}", "world")
rprintf("{1} ({2} years old)","Ken",24)
rprintf("He is {1} but has a height of {2:.2f}cm",18,190)
rprintf("{1}, {2:.1f}, {3:+.2f}, {2}, {1:.0f}",1.56,2.34,3.78)
rprintf("{2},{1}","x","y")Run the code above in your browser using DataLab