autopadZeros | R Documentation |
Autopad zeros
autopadZeros(object, ...)
## S4 method for signature 'character'
autopadZeros(object)
## S4 method for signature 'integer'
autopadZeros(object)
object |
Object. |
... |
Additional arguments. |
character
.
Updated 2023-09-21.
stringr::str_pad()
.
## integer ====
autopadZeros(c(1L, 10L, 100L))
## character ====
## Left side.
autopadZeros(c("1-EV-DMSO", "10-EV-DMSO", "2-EV-DMSO-B"))
## Right side.
autopadZeros(c("A1", "B10", "C100"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.