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)

WGCNA documentation built on Sept. 11, 2018, 9:03 a.m.

Related to prependZeros in WGCNA...