Learn R Programming

datacheck (version 0.9.8)

is.properName: Tests if string is like a proper name with inital letter in upper case

Description

Tests if string is like a proper name with inital letter in upper case

Usage

is.properName(aname)

Arguments

aname
a character string

Value

  • boolean TRUE if ok

See Also

Other rule_checks: has.punct, is.oneOf, is.onlyLowers, is.withinRange

Examples

Run this code
# Valid proper names

is.properName("John") == TRUE

is.properName("john") == FALSE

is.properName(123) == FALSE

Run the code above in your browser using DataLab