str_name_trim_pref: str name trim preferred

Description Usage Arguments Value Examples

View source: R/wranglers.R

Description

Removes any text within () Used to remove preferred names in name data, e.g. Robert (Bob) Johnson should become Robert Johnson The space from before the ( is removed as well.

Usage

1

Arguments

x

a string

Value

string vector

Examples

1
str_name_trim_pref("Robert (Bob) Johnson")

benwhicks/lakit documentation built on Sept. 28, 2019, 4:27 p.m.