add_leading_zeroes: Add Leading Zeroes to a Numeric Vector

Description Usage Arguments Value Author(s) See Also Examples

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

See Also

brickstack_to_saved_rasters

Examples

1
2
3
4
5
6
## Not run: 
x=c(1:10)
add_leading_zeroes(x,number_length=4)
add_leading_zeroes(x,max_number=10000)

## End(Not run)

climstats documentation built on May 2, 2019, 6:15 p.m.