zero_pad_whole_number {sdtm.oak} | R Documentation |
zero_pad_whole_number()
takes non-negative integer values and converts
them to character with zero padding. Negative numbers and numbers greater
than the width specified by the number of digits n
are converted to NA
.
zero_pad_whole_number(x, n = 2L)
x |
An integer vector. |
n |
Number of digits in the output, including zero padding. |
A character vector.