BernardoCGdaSilva / engate

https://bernardocgdasilva.github.io/engate/
Other
0 stars 0 forks source link

engate

R-CMD-check

engate is a package which aims to help data manipulation of brazilian public data. It consists of two sets of functions - nomeia and traduz - the former matchs an index column with its description and the latter, a related index.

Installation

You can install the development version of engate from GitHub with:

# install.packages("devtools")
devtools::install_github("BernardoCGdaSilva/engate")

Examples

This is an example of the nomeia set of functions:

library(engate)
df1 <- data.frame(codigos_cbo = c("010105", "515220", "992115"))
df2 <- nomeia_cbo(df1,"codigos_cbo")
df2
#>   codigos_cbo                                   nome_cbo
#> 1      010105             Oficial General da Aeronautica
#> 2      515220 Auxiliar de Laboratorio de Imunobiologicos
#> 3      992115                                Borracheiro

And this is an example of the traduz set:

library(engate)
df1 <- data.frame(codigos_ncm = c("01012100", "35052000", "84459030"))
df2 <- traduz_ncm_cnae(df1, "codigos_ncm")
df2
#>   codigos_ncm cnae_classe
#> 1    01012100       01521
#> 2    35052000       20916
#> 3    84459030       28631