Learn R Programming

EGRET (version 2.3.0)

formatCheckParameterCd: formatCheckParameterCd

Description

Checks that the parameter code is 5 digits. If it is less, it will pad the character with zeros. If more, ask the user to re-enter.

Usage

formatCheckParameterCd(parameterCd, interactive = TRUE)

Arguments

parameterCd
character to check
interactive
logical Option for interactive mode. If true, there is user interaction for error handling and data checks.

Value

  • parameterCd character

Examples

Run this code
pCode <- '01234'
formatCheckParameterCd(pCode)

Run the code above in your browser using DataLab