Learn R Programming

swfscMisc (version 1.0.6)

zero.pad: Zero Pad Integers

Description

Zero Pad Integers

Usage

zero.pad(x)

Arguments

x
a vector of integers.

Examples

Run this code
x <- c(0, 1, 3, 4, 10)
zero.pad(x)
x <- c(x, 11, 12, 100, 1000)
zero.pad(x)

Run the code above in your browser using DataLab