determine.surname: Determine the Surname (or Last Name)

View source: R/determine.surname.R

determine.surnameR Documentation

Determine the Surname (or Last Name)

Description

This function uses results from get.census.matrix to evaluate and derive the surname of any given character vector of Names.

Usage

determine.surname(x)

Arguments

x

Provide the 'census matrix' that is to be evaluated. See examples.

Note

The function returns a two element integer vector. The first element is the ordinal of the recommend/suggested surname. The second element is the confidence of the recommendation.

Author(s)

mjfii mick.flanigan@gmail.com

Examples

x <- 'livingston III,  Mr. MICHAEL JOHN9'
x <- prep.name(x)
x <- strsplit(x,' ')[[1]]
cd <- get.census.data(x)
print(x)
determine.surname(cd)

mjfii/Name-Parser documentation built on Aug. 17, 2024, 4:07 a.m.