preName | R Documentation |
Reverse the order of the first and last names of every element of a vector.
preName(X)
X |
A vector of names with format "name, prename". |
This function reverses the order of the first and last names of the items: i.e., "Weber, Max" turns into "Max Weber".
Another vector with its elements changed.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## To reconvert a single name:
preName("Weber, Max")
## It is possible to work with several items, as in here:
A <- c("Weber, Max", "Descartes, Rene", "Locke, John")
preName(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.