powered by
Specify text format via a sprintf format string
sprintf_format(format)
A formatting function which wraps and will apply the specified printf style format string format.
printf
format
character(1). A format string passed to sprintf.
sprintf
fmtfun <- sprintf_format("(N=%i") format_value(100, format = fmtfun) fmtfun2 <- sprintf_format("%.4f - %.2f") format_value(list(12.23456, 2.724))
Run the code above in your browser using DataLab