citeName: Function that transforms First Middle and Last name into a...

View source: R/CV_Tools.R

citeNameR Documentation

Function that transforms First Middle and Last name into a standard citation style string

Description

The function transforms names into standard citation style strings. For example Rainer Maria Rilke is converted to Rilke, R.M. The function breaks at spaces or hyphen, see the examples.

Usage

citeName(first, middle, last)

Arguments

first

First name of the person

middle

Middle name of the person (or NA)

last

Last name of the person

Value

A string with the last name followed by the extracted initials

Author(s)

Klaus Herrmann

Examples

print(citeName("Rainer","Maria","Rilke")) #Rilke, R.M.
print(citeName("Jean-Luc", "Borg", "Picard")) #Picard, J.L.B.

KlausHerrmann/khermisc documentation built on May 6, 2023, 7:08 p.m.