powered by
This function use the data source based on combined US/UK censor data to assign gender based on first name.
assign_gender(data_df, first_name_col)
input dataframe containing the first name
first name column's name to assign gender to
The input data frame with the gender column:
gender - assigned gender (F/M/U)
# NOT RUN { gender <- assign_gender(authors, "first_name") # }
Run the code above in your browser using DataLab