Learn R Programming

WikidataR (version 2.3.3)

initials: Format short form person names

Description

Converting names into first initial and surname, or just initials

Usage

initials(x, format = "FLast")

Arguments

x

a vector of people's names as strings

format

a vector of strings of either "FLast" or "FL" to indicate the output format

Value

the inputted name strings with first names shortened based on the selected format.