Description Usage Arguments Value Author(s) Examples
Returns an object that classifies inputted names according to gender.
1 | get_gender(given, family, secret, user)
|
given |
A vector of given names (i.e. first names). |
family |
A vector of family names (i.e. surnames or last names). |
secret |
A NameSor API Key (Secret). This is typically a long string of mixed-case letters and numbers. |
user |
A NameSor API Channel (User). This string contains 'namsor.com', the email address used to register for API access, and a vector of numbers. |
An object that classifies inputted names according to gender.
Charles Crabtree ccrabtr@umich.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
first_name <- c("Volha", "Charles", "Donald")
last_name <- c("Chykina", "Crabtree", "Duck")
Note that the vectors of first and last names should be the same length.
Future versions of the package will deal with differing lengths.
key <- "45b2kjsskd2335435kkmfdksmfkko"
channel <- "namsor.com/email@domain.com/111111"
y <- get_gender(first_name, last_name, key, channel)
y
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.