idPad: idPad

Description Usage Arguments Value Examples

View source: R/idPad.R

Description

This function converts an all-integer employee ID into a specified format that includes leading zeroes. HR systems often create employee IDs that have leading zeroes. The leading zeroes can be lost when they are worked on in Excel or other tools. It's usually helpful to convert the IDs back the correct format when performing lookups.

Usage

1
idPad(id, len)

Arguments

id

An employee ID.

len

The standard length requirement for each employee ID. Leading zeroes will be added to fill up the space to meet the requirement.

Value

character value

Examples

1
idPad(id="12345",len=9)

dalekube/hR documentation built on Feb. 13, 2018, 3:04 p.m.