guess_fc | R Documentation |
The function tries to guess regular fiscal code, extracting relevant alphanumeric digits from surname, name, birth date, gender and 'codice catastale' (computing the last character, the control digit).
guess_fc(
surname = NULL,
name = NULL,
birth_date = NULL,
female = NULL,
codice_catastale = NULL
)
surname |
character, surname |
name |
character, names |
birth_date |
Date, date of birth |
female |
logical, female indicator variable ( |
codice_catastale |
Italian 'codice catastale' (an identifier) of the 'comune' of birth |
The function return a character vector of fiscal code.
## using fictious data
Surnames <- c("Rossi", "Bianchi")
Names <- c("Mario", "Giovanna")
Birthdates <- as.Date(c("1960-01-01", "1970-01-01"))
Female <- c(FALSE, TRUE)
Comune_of_birth <- c("F205", # milan
"H501") # rome
guess_fc(Surnames, Names, Birthdates, Female, Comune_of_birth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.