powered by
Calculate genders from CPR numbers.
gender(cpr)
Character vector of CPR numbers with or without hyphens.
Integer vector of genders: 0 = female, 1 = male.
# NOT RUN { gender(c('1508631111', '1310762222')) # }
Run the code above in your browser using DataLab