R/pystr_isupper.R

Defines functions pystr_isupper

Documented in pystr_isupper

#' Check if a string is uppercase.
#'
#' Return \code{TRUE} if all cased characters in the string are uppercase and there is at
#' least one cased character, \code{FALSE} otherwise.
#'
#' @param str A character vector.
#'
#' @return A logical vector.
#'
#' @references \url{https://docs.python.org/3/library/stdtypes.html#str.isupper}
#'
#' @seealso \code{\link{pystr_islower}}
#'
#' @examples
#' pystr_islower("ALL UPPERCASE!")
#' pystr_islower("All Uppercase?")
#' pystr_islower("ABC123")
#'
#' @export
pystr_isupper <- function(str) {
  return(pystr_isupper_(str))
}
nicolewhite/pystr documentation built on May 23, 2019, 5:09 p.m.