Learn R Programming

KarsTS (version 2.4.1)

verifyCharEntry: verifyCharEntry: verify character entries

Description

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

Usage

verifyCharEntry(x, noValid = "isNoValid")

Arguments

x

The element to check

noValid

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

Details

One-character strings are not allowed.

Examples

Run this code
# NOT RUN {
verifyCharEntry("Strawberry", noValid = "isNoValid")
verifyCharEntry(235, noValid = "isNoValid")
verifyCharEntry(235, noValid = NA)

# }

Run the code above in your browser using DataLab