padded: Adds zero padding to the left

Description Usage Arguments Value Examples

Description

Adds zero padding to the left

Usage

1
padded(thingToPad, width)

Arguments

thingToPad

vector

width

integer - intended final width of elements

Value

vector

Examples

1
nice_numbers<- padded(c(1,2,3,20), 2)

CelMcC/UKBTools documentation built on Dec. 5, 2020, 10:51 p.m.