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.
Examples
library(namesDK)
gender("Lars Løkke Rasmussen")
#> [[1]]
#> [1] "male"
gender(c("Helle Thorning Smidt", "Lars Løkke Rasmussen", "Traktor Troels"))
#> [[1]]
#> [1] "female"
#>
#> [[2]]
#> [1] "male"
#>
#> [[3]]
#> [1] NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.