rpid: Generate Imaginary Personal IDs

Description Usage Arguments Examples

View source: R/random_generators.R

Description

The generated codes resemble Finnish national personal id convention in the field length. that the year of birth can be deduced from the code in a similar way, and the field width is the same. Otherwise, there are no similarities or well-formedness rules.

Usage

1
rpid(yearString = NA, size = length(yearString))

Arguments

yearString

String to contruct the year part (in Finnish convention). See the examples.

size

Number of elements to generate

Examples

1
2
rpid(NA, 10)
rpid(yearString=c("78-","03A","98-"))

avirkki/synergetr documentation built on May 18, 2019, 9:16 p.m.