Learn R Programming

RSurvey (version 0.7-9)

CheckEntry: Control Content in Entry Widget

Description

Content control for character strings based object class.

Usage

CheckEntry(obj.class, ent.str = "")

Arguments

obj.class
character; object class.
ent.str
character; entry value.

Value

  • A character string with strict adherence to the format for the object class.

Details

The allowed object classes include: real, integer, and logical.

See Also

tkentry

Examples

Run this code
CheckEntry("numeric", "3.14ab")
## [1] "3.14"

CheckEntry("integer", "3.")
## [1] "3"

Run the code above in your browser using DataLab