Type Package Title Validate Brazilian Administrative Registers Version 0.1.1 Package validara October 19, 2017 Maintainer Gustavo Coelho <gustavo.coelho@ipea.gov.br> Contains functions to validate administrative register as CPF (Cadastro de Pessoa Fisica), CNPJ (Cadastro de Pessoa Juridica), PIS (Programa de Integracao Social), CNES (Cadastro Nacional de Saude). It can check individual registers or create a 'rmarkdown' analysis of a base. License GPL-3 Encoding UTF-8 LazyData LazyData: true URL https://github.com/ipea/validara BugReports https://github.com/ipea/validara/issues/ Suggests testthat, knitr, covr RoxygenNote 6.0.1 Depends R (>= 3.0) LinkingTo Rcpp, BH Imports Rcpp, bit64, stringr, data.table, rmarkdown SystemRequirements C++11 VignetteBuilder knitr NeedsCompilation yes Author Gustavo Coelho [aut, cre], Lucas Mation [aut] Repository CRAN Date/Publication 2017-10-19 19:21:25 UTC 1
2 gera_digito R topics documented: doc2integer64........................................ 2 gera_digito......................................... 2 relatoriodoc........................................ 3 tabulacaodoc........................................ 4 trata_cpf........................................... 4 valida_doc.......................................... 5 valida_doc_df........................................ 5 Index 7 doc2integer64 Convert Brazilian documents. doc2integer64 returns a Brazilian document without special characters and as an integer64. doc2integer64() Character or numeric that will be converted. an bit64 integer doc2integer64("086.090.705-65") gera_digito Complete Brazilian documents. gera_digito generate the last digit of a administrative register. gera_digito(, type = "cpf")
relatoriodoc 3 type Character or numeric of the document that will be validated. Character, it could be CPF, CNPF, PIS e titulo de eleitor. it will alter the number by reference. gera_digito("529.982.247-2", type = "cpf") gera_digito("60.149.443/0001-7", type = "cnpj") relatoriodoc relatoriodoc output on pdf a data frame that summarize the output of validadoc. It is require a file where the data is located or the data itself. If neither, input and data, is giving the function stop. Also, columns and types must the same size. relatoriodoc output on pdf a data frame that summarize the output of validadoc. It is require a file where the data is located or the data itself. If neither, input and data, is giving the function stop. Also, columns and types must the same size. relatoriodoc(input_file = NULL, data = NULL, columns, types, output_filename, tipo_relatorio = "tabela") input_file data columns file where the data is located. Data frame with data to be validate. Columns of data that will be evaluated. types output_filename Character, where the output will be save. tipo_relatorio Character, grafico or tabela, indicates the kind of output return a data frame.
4 trata_cpf tabulacaodoc Check Brazilian documents. tabulacaodoc returns a data frame that summarize the output of validadoc. It is require a file where the data is located or the data itself. If neither, input and data, is giving the function stop. Also, columns and types must the same size. tabulacaodoc(input_file = NULL, data = NULL, columns, types) input_file data columns types file where the data is located. Data frame with data to be validate. Columns of data that will be evaluated. return a data frame. trata_cpf Correct Brazilian cpf document. trada_cpf The aim is transform the to the pattern of Brazilian document cpf. It must have 11 numeric characters. When a dataset is read as a numeric, it lost the 0 character on the left. This function fix that lost and transform to character. trata_cpf() Character or numeric of the document that will be adjusted. Entrada adjusted. trata_cpf(52145795)
valida_doc 5 valida_doc Check Brazilian documents. valida_doc returns true or false if the number of document is correct. valida_doc(, type = "cpf", log = FALSE) type log Character or numeric of the document that will be validated. Output errs found on True or False. if log is giving return a data frame. 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") valida_doc_df Check Brazilian documents. valida_doc_df returns true or false if the number of document is correct. valida_doc_df(data, column, type = "cpf", log = FALSE) data column type log Data frame with data to be validate. Column of data that will be evaluated. Output errs found on
6 valida_doc_df True or False. if log is giving return a data frame.
Index doc2integer64, 2 gera_digito, 2 relatoriodoc, 3 tabulacaodoc, 4 trata_cpf, 4 valida_doc, 5 valida_doc_df, 5 7