pad_auto | R Documentation |
Automatically pads elements of a column to the largest sized element. Useful when an integer code with leading zeros is read in as an integer and needs to be fixed.
pad_auto(mdb, ..., side = "left", pad = "0")
mdb |
data frame |
... |
tidyselect specification |
side |
str_pad side |
pad |
str_pad pad |
data frame
# good for putting leading 0's
tibble::tibble(x = 1:10) %>%
pad_auto(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.