translate: Translate strings

Description Usage Arguments Details Value

Description

Translate strings

Usage

1
translate(x, from_to)

Arguments

x

Character vector

from_to

Named character vector or named list

Details

If an element of x names one of the elements of from_to, it is replaced by that element.

Value

A character vector of the same length as x with elements translated according to from_to.


cbaumbach/manyregs documentation built on May 13, 2019, 1:48 p.m.