Learn R Programming

qdap (version 2.4.6)

name2sex: Names to Gender

Description

A wrapper for the gender function used to predict gender based on first name.

Usage

name2sex(names.list, USE.NAMES = FALSE, ...)

Value

Returns a vector of predicted gender (M/F) based on first name.

Arguments

names.list

Character vector containing first names.

USE.NAMES

logical. If TRUE names.list is used to name the gender vector.

...

Other arguments passed to gender.

See Also

gender

Examples

Run this code
if (FALSE) {
name2sex(qcv(mary, jenn, linda, JAME, GABRIEL, OLIVA, 
    tyler, jamie, JAMES, tyrone, cheryl, drew))
}

Run the code above in your browser using DataLab