title_gender_infer: Inferring Gender from Personal Titles

View source: R/gender_infer.R

title_gender_inferR Documentation

Inferring Gender from Personal Titles

Description

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.

Usage

title_gender_infer(df, input_name, output_name = "title_gender")

Arguments

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

Examples

title_gender_infer(data.frame(title = c("Mr.", "Mrs")), "title")

sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.