The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The documentosbr package provides a high-performance suite for validating and handling Brazilian administrative records. It currently supports: - CPF (Individual Taxpayer Registry) - CNPJ (National Registry of Legal Entities) - PIS (Social Integration Program) - CNS/CNES (National Health Card)
The core is implemented in C++ using Rcpp, allowing for extremely fast validation even on datasets with millions of observations.
O pacote documentosbr oferece uma suíte de alta performance para a validação e manipulação de registros administrativos brasileiros. Atualmente, o pacote suporta: - CPF (Cadastro de Pessoa Física) - CNPJ (Cadastro Nacional de Pessoa Jurídica) - PIS (Programa de Integração Social) - CNS/CNES (Cartão Nacional de Saúde)
O núcleo é implementado em C++ via Rcpp, permitindo validações extremamente rápidas mesmo em bases de dados com milhões de observações.
Installation / Instalação
# From CRAN / Via CRAN
install.packages("documentosbr")
# Development version / Versão de desenvolvimento
# remotes::install_github("rodrigo-borges/documentosbr")library(documentosbr)
# Vectorized validation / Validação vetorizada
cpfs <- c("12345678901", "56273869596")
valida_doc(cpfs, type = "cpf")
# Health Card (CNS) / Cartão Nacional de Saúde
valida_doc("123456789012345", type = "cnes")Caso deseje uma saída mais verbosa a função pode ser chamada da seguinte forma:
| dado | resultado | erros |
|---|---|---|
| 56273869595 | FALSE | Primeiro digito errado |
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.