validaRA (version 0.1.1)

gera_digito: Complete Brazilian documents.

Description

gera_digito generate the last digit of a administrative register.

Usage

gera_digito(entrada, type = "cpf")

Arguments

entrada

Character or numeric of the document that will be validated.

type

Character, it could be CPF, CNPF, PIS e titulo de eleitor.

Value

it will alter the number by reference.

Examples

Run this code
# 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