zfill: Zero fill strings

Description Usage Arguments Value Examples

View source: R/WWR_Software.R

Description

Pads out strings with leading zeros to a uniform character size. fill0 does the same job using a different algorighm

Usage

1
2
3
zfill(x)

fill0(x)

Arguments

x

A vector which will be coerced to charater

Value

A zero-padded character string vector

Examples

1
2
zfill(1:10)
fill0(cs(Mary, had, a, little, lamb))

BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.