Skip to contents

Adding leading zeros

Usage

Number(n, width = 3)

Arguments

n

numeric vector of whole numbers

width

width

Value

Character vector

Author

Øyvind Langsrud

Examples

Number(1:3)
#> [1] "001" "002" "003"