1#' Capitalize a string. 2#' 3#' Return a copy of the string with its first character capitalized and the rest lowercased. 4#' 5#' @param str A character vector. 6#' 7#' @return A character vector. 8#' 9#' @references \url{https://docs.python.org/3/library/stdtypes.html#str.capitalize} 10#' 11#' @seealso \code{\link{pystr_title}} 12#' 13#' @examples 14#' pystr_capitalize("ONCE UPON A TIME, ") 15#' 16#' @export 17pystr_capitalize <- function(str) { 18 return(pystr_capitalize_(str)) 19} 20