1% Generated by roxygen2 (4.1.1): do not edit by hand 2% Please edit documentation in R/pystr_center.R 3\name{pystr_center} 4\alias{pystr_center} 5\title{Center a string.} 6\usage{ 7pystr_center(str, width, fillchar = " ") 8} 9\arguments{ 10\item{str}{A character vector.} 11 12\item{width}{An integer.} 13 14\item{fillchar}{A character string.} 15} 16\value{ 17A character vector. 18} 19\description{ 20Return \code{str} centered in a string of length \code{width}. 21} 22\details{ 23Padding is done using the specified \code{fillchar} (default is an ASCII space). 24The original string is returned if \code{width} is less than or equal to \code{nchar(str)}. 25} 26\examples{ 27pystr_center("center me", 15) 28pystr_center("center me", 15, "*") 29} 30\references{ 31\url{https://docs.python.org/3/library/stdtypes.html#str.center} 32} 33\seealso{ 34\code{\link{pystr_ljust}}, \code{\link{pystr_rjust}} 35} 36 37