Learn R Programming

qdap (version 2.3.0)

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, ...)

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.

Value

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

See Also

gender

Examples

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

Run the code above in your browser using DataLab