pystr_translate: Translate a string.

Description Usage Arguments Value References See Also Examples

Description

Return a copy of str where all characters have been mapped through map, where map can be created with pystr_maketrans.

Usage

1

Arguments

str

A character vector.

map

A list of character mappings.

Value

A character vector.

References

https://docs.python.org/3/library/stdtypes.html#str.translate

See Also

pystr_maketrans

Examples

1
2
map = pystr_maketrans("abc", "123")
pystr_translate("a blue cat", map)

pystr documentation built on April 15, 2017, 12:30 a.m.

Related to pystr_translate in pystr...