valida_doc: Check Brazilian documents.

View source: R/valida_documento.R

valida_docR Documentation

Check Brazilian documents.

Description

valida_doc returns true or false if the number of document is correct.

Usage

valida_doc(entrada, type = "cpf", log = FALSE)

Arguments

entrada

Character or numeric of the document that will be validated.

type

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

log

Output errs found on entrada

Value

True or False. if log is giving return a data frame.

Examples

 valida_doc("529.982.247-25", type = "cpf")
 valida_doc("529.982.247-25", type = "pis")
 valida_doc("529.982.247-25", type = "cnes")
 valida_doc("60.149.443/0001-70", type = "cnpj")

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