Downloads and extracts census tract boundary files from the ineAtlas repository, returning an sf object with the geometries for the specified year.
Usage
get_tract_geom(year, cache = TRUE, cache_dir = tempdir())Value
An sf object containing census tract boundaries with the following columns:
year: The reference year
tract_code: Census tract identifier
municipality: Municipality name
province: Province name
geometry: Census tract boundary geometry
If the geometries cannot be downloaded and no cached copy is available,
returns NULL (invisibly) with an informative message.
