std_names: Parse Investigator Names and Remove (Most) Non-Alphabetical...

View source: R/std_names.R

std_namesR Documentation

Parse Investigator Names and Remove (Most) Non-Alphabetical Characters

Description

std_names() is designed to parse names of individuals into a standard format. It:

  1. Replaces square brackets and curly braces with parentheses

  2. Removes parenthetic expressions

  3. Removes ordinal and numeric expressions

  4. Removes symbols (replaces all except apostrophes with a space)

  5. Removes extraneous whitespace

  6. Converts to the desired case

Usage

std_names(string, case = c("upper", "lower", "title", "sentence"))

Arguments

string

A character vector containing investigator names

case

Case of output

Value

The input string with cleaned names


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.