fixWidth | R Documentation |
this function is a wrapper around a sprintf
call for
numeric and integer values (I seem to be unable to memorise the sprintf
call, hence the wrapper).
fixWidth(x, n = 1L)
x |
a numeric or integer vector |
n |
the width (nchar) of the resulting character |
A character vector of length x
Tim Appelhans
fixWidth(1, 2)
fixWidth(c(1, 20, 300, 4000, 50000), 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.