Learn R Programming

r2shortcode (version 0.2)

hasUpperCase: Contains uppercase?

Description

Simply change if there is any uppercase letter in a string

Usage

hasUpperCase(string)

Value

TRUE or FALSE if the string has an upper case letter

Arguments

string

the string to evaluate

Examples

Run this code
strToTest1 <- 'obiWentToSchool'
strToTest2 <- 'obiwenttoschool'
hasUpperCase(strToTest1)
hasUpperCase(strToTest2)


Run the code above in your browser using DataLab