The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Type: Package
Title: Update Chinese ID Card Number to Eighteen Digits
Version: 0.3.0
Author: Zhicheng Du, Yuantao Hao
Maintainer: Zhicheng Du<dgdzc@hotmail.com>
Description: The digits of the old version (before 2000 year) of 'Chinese ID Card Number' is 15, this package aims to update to the current version of 18 digits. Besides, this package can help check whether the given 'ID' is right or not.
License: GPL-3
Encoding: UTF-8
LazyData: true
Imports: stringr
NeedsCompilation: no
Packaged: 2017-11-23 03:43:59 UTC; dgdzc
Repository: CRAN
Date/Publication: 2017-11-23 04:19:06 UTC

Administrative area code

Description

The administrative area code in China updated to July 2016.

Usage

code

Format

A data.frame containing 3507 observations of 2 variables.

Source

National Bureau of Statistics of the People's Republic of China.

References

National Bureau of Statistics of the People's Republic of China.

Examples

#load the dataset
data(code)

Update Chinese ID Card Number to Eighteen Digits

Description

The digits of the old version (before 2000 year) of 'Chinese ID Card Number' is 15, this package aims to update to the current version of 18 digits.

Usage

id.15to18(id.15)

Arguments

id.15

vector of numeric or character, the old version of Chinese ID Card Number

Value

id.18

character, the new version of Chinese ID Card Number

Note

Please feel free to contact us, if you have any advice and find any bug!

Reference:

1. State Standard of the People's Republic of China: GB11643-1999 2. International Organization for Standardization: ISO7064:1983.MOD11-2

Update:

version 0.2.0: the input of id.15to18() can be a single element and a vector.

version 0.3.0: is.id() is added.

More advanced performance is coming!

Author(s)

Zhicheng Du<dgdzc@hotmail.com>, Yuantao Hao<haoyt@mail.sysu.edu.cn>

Examples

id.15to18(id.15="441900890101221")
id.15to18(id.15=rep("441900890101221",2))

Update Chinese ID Card Number to Eighteen Digits

Description

The digits of the old version (before 2000 year) of 'Chinese ID Card Number' is 15, this package aims to update to the current version of 18 digits.

Usage

id.15to18.single(id.15)

Arguments

id.15

numeric or character, the old version of Chinese ID Card Number

Value

id.18

character, the new version of Chinese ID Card Number

Note

Please feel free to contact us, if you have any advice and find any bug!

Reference:

1. State Standard of the People's Republic of China: GB11643-1999 2. International Organization for Standardization: ISO7064:1983.MOD11-2

Update:

version 0.2.0: the input of id.15to18() can be a single element and a vector.

version 0.3.0: is.id() is added.

More advanced performance is coming!

Author(s)

Zhicheng Du<dgdzc@hotmail.com>, Yuantao Hao<haoyt@mail.sysu.edu.cn>

Examples

id.15to18.single(id.15="441900890101221")

Checking the Chinses ID Card Number

Description

Checking the ID card number including length, area code, birth date, and last 3 number.

Usage

is.id(id,code)

Arguments

id

vector of Chinese ID Card Number

code

please set as the sample

Value

id

vector of Chinese ID Card Number, the same as the input

length

logic, whether the length of the 'id' is right or not, if 'FALSE', the following will be 'FALSE' either

area

logic, whether the area code of 'id' is right or not, if 'FALSE', the following will be 'FALSE' either

birth

logic, whether the birth date of 'id' is right or not, if 'FALSE', the following will be 'FALSE' either

last3

logic, whether the birth date of 'id' is right or not, if 'FALSE', the following will be 'FALSE' either

Note

Please feel free to contact us, if you have any advice and find any bug!

Reference:

1. State Standard of the People's Republic of China: GB11643-1999 2. International Organization for Standardization: ISO7064:1983.MOD11-2

Update:

version 0.2.0: the input of id.15to18() can be a single element and a vector.

version 0.3.0: is.id() is added.

More advanced performance is coming!

Author(s)

Zhicheng Du<dgdzc@hotmail.com>, Yuantao Hao<haoyt@mail.sysu.edu.cn>

Examples

with(code,is.id(c("123456789123456","12345678912345X"),code))

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.