Any canonical R way to map certain characters to replacements, tr-style?
tr
tr ('string', 'rst', 'xyz') = 'yzxing'