Learn R Programming

KarsTS (version 2.4.1)

verifyIntEntry: verifyIntEntry: verify integer entries

Description

This function reads a variable coming from a text entry and checks whether it is integer or not.It is used internally.

Usage

verifyIntEntry(x, noValid = "isNoValid")

Arguments

x

The element to check

noValid

The output the function will return when the input is not character.

Examples

Run this code
# NOT RUN {
verifyIntEntry("Strawberry", noValid = "isNoValid")
verifyIntEntry(235.6, noValid = NA)
verifyIntEntry(235, noValid = NA)
verifyIntEntry(0235, noValid = NA)
verifyIntEntry(235.0, noValid = NA)

# }

Run the code above in your browser using DataLab