R/pystr_isalpha.R

Defines functions pystr_isalpha

Documented in pystr_isalpha

#' Check if a string is alphabetic.
#'
#' Return \code{TRUE} if all characters in the string are alphabetic and there is at least one character,
#' \code{FALSE} otherwise.
#'
#' @param str A character vector.
#'
#' @return A logical vector.
#'
#' @references \url{https://docs.python.org/3/library/stdtypes.html#str.isalpha}
#'
#' @seealso \code{\link{pystr_isalnum}}, \code{\link{pystr_isnumeric}}
#'
#' @examples
#' pystr_isalpha("abc")
#' pystr_isalpha("abc123")
#' pystr_isalpha("abc!")
#' pystr_isalpha(c("one", "2", "three!"))
#'
#' @export
pystr_isalpha <- function(str) {
  return(pystr_isalpha_(str))
}
nicolewhite/pystr documentation built on May 23, 2019, 5:09 p.m.