prependZeros: Pad numbers with leading zeros to specified total width

Description Usage Arguments Value Author(s) Examples

View source: R/Functions.R

Description

This function pads the specified numbers with zeros to a specified total width.

Usage

1

Arguments

x

Vector of numbers to be padded.

width

Width to pad the numbers to.

Value

Character vector with the 0-padded numbers.

Author(s)

Peter Langfelder

Examples

1
2
prependZeros(1:10)
prependZeros(1:10, 4)

nosarcasm/WGCNA documentation built on May 28, 2019, 1:01 p.m.