equLenNumber: Equal character-length number

View source: R/equLenNumber.R

equLenNumberR Documentation

Equal character-length number

Description

equLenNumber convert numeric entry 'x' to text, with all elements getting the same number of characters (ie by adding preceeding or tailing 0s, if needed). So far, the function cannot handle scientific annotations.

Usage

equLenNumber(x, silent = FALSE, callFrom = NULL, debug = FALSE)

Arguments

x

(caracter) input vector

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of messages produced

debug

(logical) additional messages for debugging

Value

character vector formated as equal number of characters per value

See Also

sprintf

Examples

equLenNumber(c(12,-3,321))
equLenNumber(c(12,-3.3,321))

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.