assign_gender {GenderInfer} | R Documentation |
Assign gender by first name
Description
This function use the data source based on combined US/UK censor data to assign gender based on first name.
Usage
assign_gender(data_df, first_name_col)
Arguments
data_df |
input dataframe containing the first name |
first_name_col |
first name column's name to assign gender to |
Value
The input data frame with the gender column:
gender - assigned gender (F/M/U)
Examples
gender <- assign_gender(authors, "first_name")
[Package GenderInfer version 0.1.0 Index]