/
baltimore.R
42 lines (42 loc) · 1.67 KB
/
baltimore.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#' @name baltimore
#' @aliases baltimore
#' @title 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.
#'
#' @format A data frame with 211 observations on the following 17 variables.
#' \itemize{
#' \item{STATION} {a numeric vector}
#' \item{PRICE} {a numeric vector}
#' \item{NROOM} {a numeric vector}
#' \item{DWELL} {a numeric vector}
#' \item{NBATH} {a numeric vector}
#' \item{PATIO} {a numeric vector}
#' \item{FIREPL} {a numeric vector}
#' \item{AC} {a numeric vector}
#' \item{BMENT} {a numeric vector}
#' \item{NSTOR} {a numeric vector}
#' \item{GAR} {a numeric vector}
#' \item{AGE} {a numeric vector}
#' \item{CITCOU} {a numeric vector}
#' \item{LOTSZ} {a numeric vector}
#' \item{SQFT} {a numeric vector}
#' \item{X} {a numeric vector}
#' \item{Y} {a numeric vector}
#' }
#'
#' @source Prepared by Luc Anselin. Original data made available by Robin Dubin, Weatherhead School of Management, Case Western Research University, Cleveland, OH. http://sal.agecon.uiuc.edu/datasets/baltimore.zip
#' @references Dubin, Robin A. (1992). Spatial autocorrelation and neighborhood quality. Regional Science and Urban Economics 22(3), 433-452.
#' @docType data
#' @keywords datasets sf
#'
#' @examples
#' 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"])
#' }
"baltimore"