Learn R Programming

RSurvey (version 0.6-0)

CheckEntry: Content Control within Entry Widget

Description

Content control for character strings based on an expected entry type.

Usage

CheckEntry(ent.typ, ent.str = "")

Arguments

ent.typ
character; the entry type.
ent.str
character; the entry value.

Value

  • A character string with strict adherence to the specified format of the entry type.

Details

The entry types include: real, integer, hour, minute, second, and date.

See Also

tkentry

Examples

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

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

CheckEntry("hour", "13")
## [1] "13"

CheckEntry("hour", "25")
## [1] "23"

Run the code above in your browser using DataLab