Description Usage Arguments Functions
Extract data from PIN
1 2 3 4 5 6 7 8 9 | pin_extract(data, pin, into = c("dob", "sex"), remove = FALSE, ...)
pin_dob(x)
pin_century(x)
pin_sex(x, factor = TRUE, language = c("english", "finnish"))
pin_ordinal(x)
|
data |
A data frame with a PIN column. |
pin |
The name of the column cotaining PINs. Can be a bare name or a string. Uses 'tidyselect' semantics to pick the column from the data. |
into |
A character vector of length 2. Gives the names of the new columns that date of birth and sex are extracted into. |
remove |
Logical. Should the original PIN column be removed? |
... |
Additional arguments passed to 'pin_sex'. |
x |
Character vector of PINs. |
factor |
Logical. Should the return value be a factor? |
language |
Character scalar. Language to use for factor labels if
|
pin_extract
: Extract date of birth and sex into new
columns in a supplied data frame.
pin_dob
: Extract date of birth from PIN
pin_century
: Extract century of birth from PIN
pin_sex
: Extract sex from PIN
pin_ordinal
: Extract ordinal number from PIN
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.