census_2018_dwellings_sa2
2018 Census occupied and unoccupied private dwellings at Statistical Area 2 level.
From Stats NZ.
Source: Stats NZ ↗ ·Last updated: 2026-06-13 ·Updated static ·2,253 rows
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key")
df <- eolas_get("census_2018_dwellings_sa2", start = "2020-01-01")
# pip install eolas-data
from eolas_data import Client
df = Client("your_key").get("census_2018_dwellings_sa2", start="2020-01-01")
curl "https://api.eolas.nz/v1/datasets/census_2018_dwellings_sa2/data?start=2020-01-01" \
-H "X-API-Key: your_key"
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Centroids only — full geometry available via the API or CSV download.
| Column | Type | Description |
|---|---|---|
| sa2_code_2018 | string | Sa2 code 2018 |
| sa22018_v1_name | string | Sa22018 v1 name |
| land_area_sq_km | double | Land area sq km |
| area_sq_km | double | Area sq km |
| occupied_private_dwellings_2006 | long | Occupied private dwellings 2006 |
| occupied_private_dwellings_2013 | long | Occupied private dwellings 2013 |
| occupied_private_dwellings_2018 | long | Occupied private dwellings 2018 |
| occupied_private_dwellings_percent_change_2013_2018 | double | Occupied private dwellings percent change 2013 2018 |
| unoccupied_private_dwellings_2006 | long | Unoccupied private dwellings 2006 |
| unoccupied_private_dwellings_2013 | long | Unoccupied private dwellings 2013 |
| unoccupied_private_dwellings_2018 | long | Unoccupied private dwellings 2018 |
| unoccupied_private_dwellings_percent_change_2013_2018 | double | Unoccupied private dwellings percent change 2013 2018 |
| shape_length | double | Geometry length/perimeter (source projection units) |
| shape_area | double | Polygon area (source projection units) |
| geometry_wkt | string | Geometry as WKT (WGS84) — MULTIPOLYGON/POINT/LINESTRING |
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key_here")
df <- eolas_get("census_2018_dwellings_sa2")
head(df)
df <- eolas_get("census_2018_dwellings_sa2", start = "2020-01-01", end = "2024-12-31")
head(df)
df <- eolas_get("census_2018_dwellings_sa2")
write.csv(df, "census_2018_dwellings_sa2.csv", row.names = FALSE)
geometry_wkt
— fetch via the API or download CSV to get the full data.| Sa2 Code 2018 | Sa22018 V1 Name | Land Area Sq Km | Area Sq Km | Occupied Private Dwellings 2006 | Occupied Private Dwellings 2013 | Occupied Private Dwellings 2018 | Occupied Private Dwellings Percent Change 2013 2018 | Unoccupied Private Dwellings 2006 | Unoccupied Private Dwellings 2013 | Unoccupied Private Dwellings 2018 | Unoccupied Private Dwellings Percent Change 2013 2018 | Shape Length | Shape Area |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 100100 | North Cape | 826.7851 | 826.7851 | 522 | 573 | 633 | 10.5 | 186 | 186 | 219 | 17.7 | 415,921.1537 | 826,783,934.125 |
| 100200 | Rangaunu Harbour | 272.1041 | 272.1041 | 729 | 741 | 777 | 4.9 | 96 | 138 | 174 | 26.1 | 149,824.7171 | 272,101,933.506 |
| 100300 | Inlets Far North District | 0.0000 | 625.9728 | 42 | 60 | 75 | 25.0 | 12 | 9 | 3 | -66.7 | 1,359,238.5449 | 625,980,631.595 |
| 100400 | Karikari Peninsula | 174.1808 | 174.1808 | 414 | 480 | 483 | 0.6 | 477 | 540 | 657 | 21.7 | 140,012.3462 | 174,181,038.735 |
| 100500 | Tangonge | 177.2043 | 177.2043 | 345 | 402 | 393 | -2.2 | 90 | 75 | 66 | -12.0 | 101,241.0853 | 177,205,798.836 |
Showing 5 sample rows. Get an API key to access the full dataset.
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Start 14-day trial