pad: Pad a vector of numerical string with zeros.

Description Usage Arguments Value Author(s) Examples

Description

This function helps to pad numbers on the left side with zeros so that they may be used to create strings used in filesystem names (for example).

Usage

1
pad(vect,np)

Arguments

vect

a vector of strings representing numbers.

np

number of zeros to pad to the left of the string.

Value

a (vector of) string(s) with np number of zeros padded on as a prefix

Author(s)

Jeremy Tantrum

Examples

1
pad(c(1,10,1000,10000), 4)


Search within the caroline package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.