lpad | R Documentation |
lpad Used to display value with a fixed width format format value according to width and digit is value is a number
lpad(value, width = 11, digit = 0, char = " ")
value |
A value to format |
width |
The expected width |
digit |
The number of digit |
char |
Char used to pad left |
The formated value
lpad("test",10,0)
lpad(2,6,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.