No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.Rproj.user
R
man
.Rbuildignore
.gitattributes
DESCRIPTION
NAMESPACE
README.Rmd
README.md
codesBR.Rproj
cran-comments.md

README.md

codesBR

codesBR is a package for adding Brazilian municipal identifiers to a table. Specifically, the package provides simple functions to add IBGE, TSE, and SIAFI identifiers to tables that contain only one of these identifiers – making it easy to match the main codes used by public agencies in Brazil to identify each one of the country’s 5,570 municipalities.

How does it work?

This is a basic example which shows you how to solve a common problem:

## basic example code

The package also contains two convenience functions to add the two most widely used identifiers in Brazil, from IBGE and TSE. In case one have a variable with IBGE municipal identifiers, to get the correspondent TSE ones use the tse_from_ibge function:

# Add TSE identifiers to a table

Conversely, to get TSE municipal identifiers from IBGE ones, use the ibge_from_tse function as follows:

# Add IBGE identifiers to a table

Installation

To install the package from CRAN, use:

install.packages("codesBR")

To install the development version from GitHub, use:

devtools::install_github("meirelesff/codesBR")

Disclaimer

Author