id2gender: Extraction Gender

Description Usage Arguments Value Author(s) Examples

Description

Extraction of gender in the resident identity cards of People's Republic of China.

Usage

1
id2gender(x,fillna=NA)

Arguments

x

A vector containing 18 Bit ID numbers,id2age.

fillna

The filling value of the missing value,the default value is NA,id2age.

Value

Return 'F' means that the corresponding identity card for female citizens,'M' means male.

Author(s)

Xu Jing

Examples

1
2
3
4
5
library(Ricetl)
x <- c('654003198111200241','341881197709275718',
'340503199401248097','469030199406204103','5111001')
id2gender(x)
id2gender(x,fillna=25)

Ricetl documentation built on June 10, 2019, 1:03 a.m.