I just wrote one, but I was wondering if it already exists in R.
Here's the BTW feature (suggestions for improvement are welcome):
set.seed(50)
x <- sample(c(letters, LETTERS), 7)
is.lower <- function(x)
{
unlist(sapply(x, function(x2) {x2 %in% letters}))
}
is.lower(x)
source
share