Function to generate random gender and ethnicity correct first and/or last names. Names are chosen proportionally based upon their probability of appearing in a large scale data base of real names.
When running the command
randomNames(1, which.names = "first", gender = 1)
some names are returned which have leading whitespaces. E.g. " Huda" and " Muzna".
Even though this can be fixed easily with trimws it is unexpected and maybe problematic to some people if these names are also returned without whitespace sometimes.
When running the command
randomNames(1, which.names = "first", gender = 1)
some names are returned which have leading whitespaces. E.g. " Huda" and " Muzna".Even though this can be fixed easily with trimws it is unexpected and maybe problematic to some people if these names are also returned without whitespace sometimes.