Home sales prices and characteristics for Seattle and King County, WA (May 2014 - 2015). Use list2env(kchomesale, .GlobalEnv) to unlist in working environment. The data consist of a list of two objects:

  • kchomesales_points A spatial points object of class sf Dataframe.

  • kc_zones A shapefile object of class sf Dataframe.

kchomesale

Format

kchomesales_points includes homesales points with 21,613 rows, 21 variables, and a geometry column.

id

ID code

date

date sold

price

sale price

bedrooms

number of bedrooms

bathrooms

number of bathrooms

sqft_liv

size of living area in square feet

sqft_lot

size of the lot in square feet

floors

number of floors

waterfront

‘1’ if the property has a waterfront, ‘0’ if not

view

An index from 0 to 4 of how good the view of the property was

condition

condition of the house, ranked from 1 to 5

grade

Classification by construction quality which refers to the types of materials used and the quality of workmanship. Buildings of better quality (higher grade) cost more to build per unit of measure and command higher value. Additional details in: https://info.kingcounty.gov/assessor/esales/Glossary.aspx?type=r

sqft_above

square feet above ground

sqft_basmt

square feet below ground

yr_built

year built

yr_renov

year renovated. ‘0’ if never renovated

zipcode

5 digit zip code

lat

latitude

long

longitude

squft_liv15

average size of interior housing living space for the closest 15 houses, in square feet

squft_lot15

average size of land lost for the closest 15 houses, in square feet

OBJECTID

Polygon ID

ZIP

ZIP code as int

ZIPCODE

ZIP code as chr

COUNTY

County code

Shape_leng

Polygon length in meters

Shape_Area

Polygon area in meters

kc_zones includes polygons of zones for King County with 85 rows, 6 variables and a geometry column).

OBJECTID

ID code

ZIP

Zip code

COUNTY

County code

ZIP_TYPE

Zip code type: standard or PO box

Shape_Leng

Polygon length

Shape_Area

Polygon area

Source

King County Home sales obtained from https://www.kaggle.com/harlfoxem/housesalesprediction/discussion and King county polygons are retrieved from https://gis-kingcounty.opendata.arcgis.com/datasets/zipcodes-for-king-county-and-surrounding-area-shorelines-zipcode-shore-area

Details

List of two Sf objects, unprojected. EPSG 4326: WGS84.

Examples

## Unlist in Global environment library(geodaData) data(kchomesale) list2env(kchomesale, environment())
#> <environment: 0x7fb27c43a9a8>
ls()
#> [1] "kc_zones" "kchomesales_points"
## Plot first listed dataset (kchomesales_points): if (requireNamespace("sf", quietly = TRUE)) { library(sf) data(kchomesale) plot(kchomesale[[1]]["price"]) }