if (FALSE) {
# Step 1: find the state code (Treasury code, NOT IBGE)
estados <- get_tc_estados()
pe_code <- estados$codigo[estados$nome == "Pernambuco"]
# Step 2: list municipalities for that state
municipios <- get_tc_municipios(p_uf = pe_code)
# Or search by partial name
recife <- get_tc_municipios(p_nome = "Recife")
}
Run the code above in your browser using DataLab