AT.add.leading.zeros: AT.add.leading.zeros

Description Usage Arguments Value Examples

Description

Adds leading zeros to a number and represent it in a string of fixed length.

Usage

1
AT.add.leading.zeros( x, digits = 5)

Arguments

x

number

digits

length of resulting string. Should be larger that log10(x).

Value

Character string with digits characters.

Examples

1
2
# Represent 99 as '00099'
AT.add.leading.zeros(x = 9, digits = 5)


Search within the libamtrack package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.