find.case: find.case

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/checkCase.r

Description

Checks if strings are all upper or all lower case

Usage

1
find.case(string, case = c("upper", "lower", "mixed", "numeric"))

Arguments

string

Character vector of strings to check cases

case

Whether checking for upper or lower case

Details

Checks if strings are all upper or all lower case. If string is all numbers it returns TRUE.

Value

A vector of TRUE AND FALSE

Author(s)

Jared P. Lander

See Also

upper.case lower.case numeric.case mixed.case

Examples

1
2
3
toCheck <- c('BIG', 'little', 'Mixed', 'BIG WITH SPACE', 'little with space', 'MIXED with SPACE')
find.case(toCheck, 'upper')
find.case(toCheck, 'lower')

useful documentation built on June 7, 2017, 9:02 a.m.