gera_digito generate the last digit of a administrative register.
gera_digito
gera_digito(entrada, type = "cpf")
Character or numeric of the document that will be validated.
Character, it could be CPF, CNPF, PIS e titulo de eleitor.
it will alter the number by reference.
# NOT RUN { gera_digito("529.982.247-2", type = "cpf") gera_digito("60.149.443/0001-7", type = "cnpj") # }
Run the code above in your browser using DataCamp Workspace