EPM_zerofill | R Documentation |
Coerce a vector to character and then harmonize the number of characters (nchar) of each element by adding a suitable number of leading zeroes (or other user-character).
EPM_zerofill(x, fillchar = "0")
x |
vector (numeric or character). |
fillchar |
string corresponding to a single character. This character is going to be added (one or more times) in front of each element of the input vector. |
character vector whose elements have all the same size (number of characters).
Damiano Fantini, damiano.fantini@gmail.com
https://www.data-pulse.com/dev_site/easypubmed/
# Example 1
easyPubMed:::EPM_zerofill(c(1, 100, 1000))
# Example 2
easyPubMed:::EPM_zerofill(c('Hey,', 'hello', 'there!'), '_')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.