convert_names: Convert Names

Description Usage Arguments Examples

Description

Take any name from any of the given naming conventions and spit out the wanted name.

Usage

1
2
3
convert_names(names, out_format = c("Full Name", "First Name", "Last Name",
  "Number"), conversion_document = "K:/Stat/RMT/grader_names.xlsx",
  load = TRUE, ig.case = TRUE)

Arguments

names

Names to convert

out_format

Should names be returned as Full Name, First Name, Last Name, or Number

conversion_document

either matrix with two columns or path to document containing conversion scheme. (If document, remember 'load = TRUE'.) Should consist of two columns, first with first and last names separated by space, second with everything to match against.

load

logical; if TRUE, conversion_document is assumed to be an excel spreadsheet and will be read using read_excel from the readxl package.

ig.case

ignore case when matching?

Examples

1
2
3
4
5
6
7
## Not run: 
convert_names(names = c('pak', 'sheila'),
              out_format = c('Full Name'),
              conversion_document = 'K:/Stat/RMT/grader_names.xlsx',
              load = TRUE,
              ig.case = TRUE)
## End(Not run)

rmtrane/QualityControl documentation built on May 5, 2019, 5:54 p.m.