Learn R Programming

r2shortcode (version 0.2)

isUpperCase: Is string uppercase?

Description

Simply, test if a string is uppercase and return TRUE or FALSE

Usage

isUpperCase(string)

Value

TRUE or FALSE if the string is all upper case

Arguments

string

The string to evaluate

Examples

Run this code
strTest1 <- 'OBI'
strTest2 <- 'obiO'
isUpperCase(strTest1)
isUpperCase(strTest2)


Run the code above in your browser using DataLab