gera_digito: Complete Brazilian documents.

View source: R/gera_digitos.R

gera_digitoR Documentation

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

 gera_digito("529.982.247-2", type = "cpf")
 gera_digito("60.149.443/0001-7", type = "cnpj")

ipea/validaRA documentation built on Nov. 25, 2022, 10:11 p.m.