find.case {useful} | R Documentation |
Checks if strings are all upper or all lower case
find.case(string, case = c("upper", "lower", "mixed", "numeric"))
string |
Character vector of strings to check cases |
case |
Whether checking for upper or lower case |
Checks if strings are all upper or all lower case. If string is all numbers it returns TRUE.
A vector of TRUE AND FALSE
Jared P. Lander
upper.case lower.case numeric.case mixed.case
toCheck <- c('BIG', 'little', 'Mixed', 'BIG WITH SPACE', 'little with space', 'MIXED with SPACE')
find.case(toCheck, 'upper')
find.case(toCheck, 'lower')