valida_doc returns true or false if the number of document is correct.
valida_doc
valida_doc(entrada, type = "cpf", log = FALSE)
Character or numeric of the document that will be validated.
Character, it could be CPF, CNPJ, PIS e titulo de eleitor.
Output errs found on entrada
True or False. if log is giving return a data frame.
# NOT RUN { 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") # }
Run the code above in your browser using DataLab