Description Usage Arguments Details Value Examples
View source: R/assign_gender.R
Looks up for the gender of the personal names in x
.
1 |
x |
A character vector. |
Unidentified genders are set as NA
values.
A character vector of the same length as x
.
1 2 3 4 5 6 7 8 9 10 11 12 | x. = c("Carlos", "Martha", "not_a_name")
assign_gender(x.)
library(tidyverse)
edcn_genders <- edcn %>%
separate(subject_name,
into = c("family_names", "personal_name"),
sep = ",") %>%
mutate(gender = assign_gender(personal_name)) %>%
select(1:2, gender, everything())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.