Description Usage Arguments Value Examples
The function implements the algorithm described in
http://www.interior.gob.es/web/servicios-al-ciudadano/dni/calculo-del-digito-de-control-del-nif-nie
to derive the final letter of a 8 characters. The first character in the
string may be either a number or "X", "Y" or "Z". The remaining 7 characters
must be digits. If dni
does not match this format, the function
returns NA
.
1 | letraNIFE(dni)
|
dni |
String vector. |
the final letter of the DNI / NIE. The function is vectorized, so
that it admits a vector of strings and returns a vector. If dni
does
not match the right format for a DNI or NIE, it returns NA
.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.