title_gender_infer | R Documentation |
This function takes a dataframe with a column of personal titles, such as Ms. Miss. Mrs. Mr. and outputs another column with respectively inferred gender.
title_gender_infer(df, input_name, output_name = "title_gender")
df |
Dataframe containing a column of titles |
input_name |
The name of the column containing titles in the given df |
output_name |
The name of the column that will contain inferred gender |
title_gender_infer(data.frame(title = c("Mr.", "Mrs")), "title")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.