Learn R Programming

datacheck (version 1.2.2)

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; has_punct; is.oneOf; is.onlyLowers; is.withinRange; is_one_of; is_only_lowers; is_proper_name; is_within_range

Examples

Run this code
# Valid proper names

is_proper_name("John") == TRUE

is_proper_name("john") == FALSE

is_proper_name(123) == FALSE 

Run the code above in your browser using DataLab