get_qualocep_data() retrieves a validated dataset of Qual o CEP from the
package's OSF repository.
Note: This function requires an internet connection to work and the
osfr package to be installed.
Arguments
- file
(optional) A
characterstring with the path to a Qual o CEP dataset file. IfNULL, the dataset will be downloaded from the package's OSF repository. (default:NULL).- pattern
(optional) A
characterstring with the pattern of the Qual o CEP dataset file to download. Click here to see the available patterns (default:"2024-11-12.rds").- force
(optional) A
logicalflag to force the download of the Qual o CEP dataset file. IfTRUE, the dataset will be downloaded even if it already exists in the temporary directory (default:FALSE).
Value
A tibble containing the Qual o CEP dataset with
the following columns:
postal_code: Acharactervector with the postal codes.street_type: Acharactervector with the type of streets.street_name: Acharactervector with the name of the streets.street: Acharactervector with the full name of the streets.complement: Acharactervector with the complement of the addresses.place: Acharactervector with the place of the addresses.neighborhood: Acharactervector with the neighborhoodsmunicipality_code: Anintegervector with the codes of the Brazilian Institute of Geography and Statistics (IBGE) for Brazilian municipalities.municipality: Acharactervector with the name of the municipalities.state_code: Anintegervector with the codes of the Brazilian Institute of Geography and Statistics (IBGE) for the Brazilian state.state: Acharactervector with the name of the states.federal_unit: Acharactervector with the abbreviations of the Brazilian federal unit.latitude: Anumericvector with the latitude values of the postal codes (retrieved using Google Geocoding API).longitude: Anumericvector with the longitude values of the postal codes (retrieved using Google Geocoding API).
Details
Qual o CEP is a database of Brazilian addresses and postal codes geocoded made using the Google Geocoding API.
Please note the year of the pattern. Some values could be
