Abbreviates multiple words to first letters

abbreviate(string, collapse)

Arguments

string

Character. A character vector with the names

collapse

Character. A string that will be used to separate names

Value

Returns a character vector with one element.

Examples

tenzing:::abbreviate("Franz Jude Wayne", collapse = "")
#> [1] "F.J.W."