get_gender: Classifies names based on gender

Description Usage Arguments Value Author(s) Examples

View source: R/gender.r

Description

Returns an object that classifies inputted names according to gender.

Usage

1
get_gender(given, family, secret, user)

Arguments

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.

Value

An object that classifies inputted names according to gender.

Author(s)

Charles Crabtree ccrabtr@umich.edu

Examples

 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)

nomine documentation built on Nov. 17, 2017, 4:49 a.m.