fmt_int: Convert integers into strings

Description Usage Arguments Value Examples

Description

Converts an integer value or vector of integer values into string(s) without any decimal point, padding them with leading zeroes to ensure they are all the same length.

Usage

1
fmt_int(num)

Arguments

num

integer vector of values to be converted (these do not need to be of class integer but they do need to be integer, i.e. without any digits after the decimal points).

Value

character: vector of formatted integer values, padded to the length of the largest value with leading spaces.

Examples

1
2
3
fmt_int(1.0)
fmt_int(2)
fmt_int(c(2, 25, 467))

toniprice/jutebag documentation built on May 12, 2019, 4:39 a.m.