Creates a specialist data frame ready for use in classify_occ from a character vector containing the specialists names

create_spec_df(spec.char)

Arguments

spec.char

a character vector with specialist names

Value

a data frame. Columns split the names, surname and abbreviation for the names. If the full name contain any special character, such as accent marks, two lines for that name will be provided, with and without the special characters. See examples.

Examples

# Example using Latin accent marks data(spec_names_ex) spec_names_ex
#> [1] "Caetano Veloso" "Antônio Carlos Tom Jobim" #> [3] "Gilberto Gil" "Vinícius de Morais"
create_spec_df(spec_names_ex)
#> LastName Name1 Name2 Name3 Abbrev1 Abbrev2 Abbrev3 #> 1 Gil Gilberto G #> 2 Jobim Antônio Carlos Tom A C T #> 3 Jobim Antonio Carlos Tom A C T #> 4 Morais Vinícius de V #> 5 Morais Vinicius de V #> 6 Veloso Caetano C