gender: Gender classifier for danish names

Description Usage Arguments Details Value Source Examples

Description

The function uses the official danish lists of male, female and unisex first names to classify names as either male, female or unisex. If a name can not be determined as either one of those three it will return as NA.

Usage

1

Arguments

names

A vector of names - either one or several

Details

The functions is vectorized and can accept several names at ones. It accepts both first names and full names. In case of full names it splits on space and choses the first name.

Value

list of gender classifications

Source

https://ast.dk/born-familie/navne/navnelister/godkendte-fornavne

Examples

1
2
3
4
5
library(namesDK)

gender("Lars Løkke Rasmussen")

gender(c("Helle Thorning Smidt", "Lars Løkke Rasmussen", "Traktor Troels"))

56north/namesDK documentation built on May 5, 2019, 11:27 a.m.