Description Usage Arguments Value Examples
This function used a database of names and corresponding gender to lookup the gender of a name. It takes in a vector of names and returns a vector indicating gender for the name. The gender is denoted by "m"/"f"/"u" for male/female/unknown respectively.
1 | infer_gender(x, detect_cores)
|
x |
The vector of names to perform paralleized inference on |
detect_cores |
If False (default), 2 cores are used. If True, half the number of cores are used on Mac OS else 2 cores are used. |
The a vector with m/f/u if the name in the original vector was male female or Unknown respectively
1 | infer_gender(x=c("abby", "Nick", "abc"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.