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

View source: R/server-std_names.R

std_namesR Documentation

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

Description

'std_names()' parses investigator names given in the teams worksheet into a standard format for matching with REDcap. It:

  1. Replaces square brackets and curly braces with parentheses

  2. Removes parenthetic expressions

  3. Removes ordinal and numeric expressions

  4. Converts 'NA's to text (for the next function)

  5. Passes the intermediate to make_clean_names( case = "title", use_make_names = FALSE, transliterations = c("Any-Latin", "Latin-ASCII"), sep_out = " " )

  6. Removes leading and trailing dashes

  7. Removes extraneous whitespace

  8. Inverts converted 'NA's (back to 'NA_character_')

Usage

std_names(string)

Arguments

string

A character vector containing investigator names

Value

The input 'string' with cleaned names


jesse-smith/schedules documentation built on July 21, 2022, 9:40 a.m.