addZeros: Function to add zeros before and after a numeric vector to...

addZerosR Documentation

Function to add zeros before and after a numeric vector to have the same number of characters.

Description

Function to add zeros before and after a numeric vector to have the same number of characters.

Usage

addZeros(x, nr=2)

Arguments

x

Numeric vector.

nr

number of digits to keep to the right.

Details

A simple apply function to make a matrix of one row and nc columns.

Value

$res

a matrix

References

Giovanny Covarrubias-Pazaran (2024). evola: a simple evolutionary algorithm for complex problems. To be submitted to Bioinformatics.

See Also

evolafit – the core function of the package

Examples


addZeros(5)


evola documentation built on Aug. 8, 2025, 7:54 p.m.