pystr_translate: Translate a string.

Description Usage Arguments Value References See Also Examples

View source: R/pystr_translate.R

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)

nicolewhite/pystr documentation built on May 23, 2019, 5:09 p.m.