1% Generated by roxygen2 (4.1.1): do not edit by hand 2% Please edit documentation in R/pystr_makestrans.R 3\name{pystr_maketrans} 4\alias{pystr_maketrans} 5\title{Create a character map.} 6\usage{ 7pystr_maketrans(x, y) 8} 9\arguments{ 10\item{x}{A string.} 11 12\item{y}{A string.} 13} 14\value{ 15A list of character mappings for use in \code{\link{pystr_translate}}. 16} 17\description{ 18Create a list of character mappings usable for \code{\link{pystr_translate}}. 19} 20\details{ 21The two arguments must be strings of equal length, and in the resulting 22dictionary, each character in \code{x} will be mapped to the character at the 23same position in \code{y}. 24} 25\examples{ 26map = pystr_maketrans("abc", "123") 27pystr_translate("a blue cat", map) 28} 29\references{ 30\url{https://docs.python.org/3/library/stdtypes.html#str.maketrans} 31} 32\seealso{ 33\code{\link{pystr_translate}} 34} 35 36