gen_lastname randomly sample a lastname from the selected database:
country If is 'uk', the function will automatically sample a
lastname. from a extracted lastname database. The lastname database was extracted
from ONS.
If country is 'us', the function will automatically sample a
lastname. that based on the race. The us lastname database was extracted
from randomNamesData.
Usage
gen_lastname(country = "uk", race = NA)
Arguments
country
A string variable with a default of 'uk'. It is either
'uk' or 'us'.
race
A number or a string of the ethnicity code:
1 American Indian or Native Alaskan, 2 Asian or Pacific Islander,
3 Black (not Hispanic), 4 Hispanic, 5 White (not Hispanic) and
6 Middle-Eastern, Arabic.