add_leading_zeroes: Add Leading Zeroes to a Numeric Vector

Description Usage Arguments Value Author(s) Examples

View source: R/add_leading_zeroes.R

Description

Appends leading zeroes to a vector of numbers based on a string length or a maximum number.

Usage

1
add_leading_zeroes(number, number_length, max_number)

Arguments

number

A numeric vector.

number_length

The length of the output string.

max_number

A number to base the length of the output string on.

Value

A character vector.

Author(s)

Jonathan A. Greenberg

Examples

1
2
3
x=c(1:10)
add_leading_zeroes(x,number_length=4)
add_leading_zeroes(x,max_number=10000)

azvoleff/spatial.tools documentation built on June 4, 2017, 12:08 a.m.