powered by
Checks if strings are all upper or all lower case
find.case(string, case = c("upper", "lower", "mixed", "numeric"))
Character vector of strings to check cases
Whether checking for upper or lower case
A vector of TRUE AND FALSE
Checks if strings are all upper or all lower case. If string is all numbers it returns TRUE.
upper.case lower.case numeric.case mixed.case
# NOT RUN { toCheck <- c('BIG', 'little', 'Mixed', 'BIG WITH SPACE', 'little with space', 'MIXED with SPACE') find.case(toCheck, 'upper') find.case(toCheck, 'lower') # }
Run the code above in your browser using DataLab