citeName | R Documentation |
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.
citeName(first, middle, last)
first |
First name of the person |
middle |
Middle name of the person (or NA) |
last |
Last name of the person |
A string with the last name followed by the extracted initials
Klaus Herrmann
print(citeName("Rainer","Maria","Rilke")) #Rilke, R.M.
print(citeName("Jean-Luc", "Borg", "Picard")) #Picard, J.L.B.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.