| read_tracts {censobr} | R Documentation | 
Download census tract-level data from Brazil's censuses
Description
Download census tract-level aggregate data from Brazil's censuses.
Usage
read_tracts(
  year = 2010,
  dataset = NULL,
  as_data_frame = FALSE,
  showProgress = TRUE,
  cache = TRUE
)
Arguments
| year | Numeric. Year of reference in the format  | 
| dataset | Character. The dataset to be opened. Options currently include
 | 
| as_data_frame | Logical. When  | 
| showProgress | Logical. Defaults to  | 
| cache | Logical. Whether the function should read the data cached
locally, which is much faster. Defaults to  | 
Value
An arrow Dataset or a "data.frame" object.
Examples
# return data as arrow Dataset
df <- read_tracts(year = 2010,
                  dataset = 'PessoaRenda',
                  showProgress = FALSE)
# return data as data.frame
df <- read_tracts(year = 2010,
                  dataset = 'Basico',
                  as_data_frame = TRUE,
                  showProgress = FALSE)