lpad: lpad Used to display value with a fixed width format format...

View source: R/utils.R

lpadR Documentation

lpad Used to display value with a fixed width format format value according to width and digit is value is a number

Description

lpad Used to display value with a fixed width format format value according to width and digit is value is a number

Usage

lpad(value, width = 11, digit = 0, char = " ")

Arguments

value

A value to format

width

The expected width

digit

The number of digit

char

Char used to pad left

Value

The formated value

Examples

lpad("test",10,0)
lpad(2,6,2)

Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.