Learn R Programming

mutSignatures (version 1.2)

leadZeros: Add Leading Zeros to a Number

Description

Converts a numeric to character and adds leading zeros, in order to allow consistent sorting. Currently, this function is not used by the core framework functions anymore.

Usage

leadZeros(n, m)

Arguments

n

number (integer) to be transformed

m

maximum number that will be used to define how many leading zeros to attach

Value

input number "n" convverted to character and modified by attaching the required number of leading zeros

References

More info at: http://www.biotechworld.it/bioinf/2017/01/22/mutsignatures/

Examples

Run this code
# NOT RUN {
leadZeros(15, 99999)
# }

Run the code above in your browser using DataLab