| Title: | Import Brazilian Real Estate Data into R |
|---|---|
| Description: | Provides access to Brazilian real estate market data from multiple official sources: the Central Bank of Brazil (BCB) <https://www.bcb.gov.br/>, the Brazilian Association of Real Estate Developers (ABRAINC) <https://abrainc.org.br/>, the Brazilian Association of Real Estate Credit and Savings Entities (ABECIP) <https://www.abecip.org.br/>, the Getulio Vargas Foundation (FGV) <https://portalibre.fgv.br/>, and the Bank for International Settlements (BIS) <https://www.bis.org/>. |
| Authors: | Vinicius Oike Reginatto [aut, cre, cph] |
| Maintainer: | Vinicius Oike Reginatto <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.0.0 |
| Built: | 2026-05-30 09:58:55 UTC |
| Source: | https://github.com/viniciusoike/realestatebr |
List of main Brazilian real estate players listed on B3.
b3_real_estateb3_real_estate
b3_real_estateA tibble with 38 rows and 3 columns:
Stock ticker.
Full company name.
A shorter version of the company name.
B3
A table with metadata for BCB economic series. Use with get_dataset("bcb_series").
The hierarchy column controls which series are returned by default: pass
table = "core" for the most relevant real estate series, or a broader
level for more macroeconomic context (see get_dataset).
bcb_metadatabcb_metadata
bcb_metadataA data frame with 140 rows and 11 columns:
Numeric code identifying the series.
Category of the series.
Simplified name of the series.
Full name of the series in Portuguese.
Full name of the series in English.
Unit of the series.
Frequency of the series.
Date of the first available observation.
Date of the last available observation.
Source of the series.
Integer relevance tier: 1 = core real estate credit series; 2 = primary (key macro series such as SELIC, IPCA, INCC); 3 = secondary (broader macro context); 4 = tertiary (less relevant or discontinued series).
Brazilian Central Bank (BCB)
Drops every dataset memoised during the current R session. Useful when iterating during development or to force re-fetch without restarting R.
clear_session_cache()clear_session_cache()
NULL, invisibly.
clear_session_cache()clear_session_cache()
A table with official IBGE identifiers for all Brazilian cities.
dim_citydim_city
An object of class tbl_df (inherits from tbl, data.frame) with 5570 rows and 9 columns.
A tibble with 5,570 rows and 8 columns:
7-digit IBGE code identifying the city.
Name of the city.
2-digit IBGE code identifying the state.
Name of the state.
1-digit IBGE code identifying the region
Name of the region
Simplified version of the city name for easier subsetting.
IBGE (Brazilian Institute of Geography and Statistics)
Unified interface for accessing all realestatebr datasets. Resolves data from the package's GitHub release assets when possible (fast, pre-processed, updated weekly by CI) and falls back to a fresh download from the original source. Repeated calls within one R session are served from an in-memory memo to avoid redundant network traffic.
get_dataset( name, table = NULL, source = "auto", date_start = NULL, date_end = NULL, ... )get_dataset( name, table = NULL, source = "auto", date_start = NULL, date_end = NULL, ... )
name |
Character. Dataset name (see |
table |
Character. Specific table within a multi-table dataset. See
|
source |
Character. Data source preference:
Use |
date_start |
Date. Start date for time series filtering (where applicable). |
date_end |
Date. End date for time series filtering (where applicable). |
... |
Additional arguments passed to internal dataset functions. |
A tibble or named list, depending on the dataset. Use
get_dataset_info to inspect the expected structure.
list_datasets for available datasets,
get_dataset_info for dataset details,
clear_session_cache to drop the in-session memo.
abecip_data <- get_dataset("abecip") sbpe_data <- get_dataset("abecip", table = "sbpe") bcb_recent <- get_dataset("bcb_series", date_start = as.Date("2020-01-01"))abecip_data <- get_dataset("abecip") sbpe_data <- get_dataset("abecip", table = "sbpe") bcb_recent <- get_dataset("bcb_series", date_start = as.Date("2020-01-01"))
Returns detailed metadata for a single dataset, including available tables and source information.
get_dataset_info(name)get_dataset_info(name)
name |
Character. Dataset identifier (see |
A named list with the following elements:
Title, description, geography, frequency, and coverage.
Available tables/subtables and their descriptions.
Source organization and URL.
Cached file names and translation notes.
info <- get_dataset_info("abecip") str(info)info <- get_dataset_info("abecip") str(info)
Returns a tibble describing all datasets available in the realestatebr package. Optionally filter by category, source organization, or geographic coverage.
list_datasets(category = NULL, source = NULL, geography = NULL)list_datasets(category = NULL, source = NULL, geography = NULL)
category |
Optional character. Keyword matched against the dataset description
(e.g., |
source |
Optional character. Filter by data source organization
(e.g., |
geography |
Optional character. Filter by geographic coverage
(e.g., |
A tibble with one row per dataset and the following columns:
Dataset identifier used with get_dataset.
English dataset name.
Portuguese dataset name.
Brief description.
Data source organization.
Geographic coverage.
Update frequency.
Time period covered.
Comma-separated table names for multi-table datasets.
get_dataset for retrieving data,
get_dataset_info for detailed metadata on a single dataset.
list_datasets() list_datasets(source = "BCB")list_datasets() list_datasets(source = "BCB")