Learn R Programming

spData (version 2.0.1)

baltimore: House sales prices, Baltimore, MD 1978

Description

House sales price and characteristics for a spatial hedonic regression, Baltimore, MD 1978. X,Y on Maryland grid, projection type unknown.

Usage

baltimore

Arguments

Format

A data frame with 211 observations on the following 17 variables.

  • STATION a numeric vector

  • PRICE a numeric vector

  • NROOM a numeric vector

  • DWELL a numeric vector

  • NBATH a numeric vector

  • PATIO a numeric vector

  • FIREPL a numeric vector

  • AC a numeric vector

  • BMENT a numeric vector

  • NSTOR a numeric vector

  • GAR a numeric vector

  • AGE a numeric vector

  • CITCOU a numeric vector

  • LOTSZ a numeric vector

  • SQFT a numeric vector

  • X a numeric vector

  • Y a numeric vector

References

Dubin, Robin A. (1992). Spatial autocorrelation and neighborhood quality. Regional Science and Urban Economics 22(3), 433-452.

Examples

Run this code
data(baltimore)
str(baltimore)

if (requireNamespace("sf", quietly = TRUE)) {
  library(sf)
  baltimore_sf <- baltimore %>% st_as_sf(., coords = c("X","Y"))
  plot(baltimore_sf["PRICE"])
}

Run the code above in your browser using DataLab