make_ames: Create a Processed Version of the Ames Housing Data

Description Usage Details Value Examples

View source: R/make_ames.R

Description

Create a Processed Version of the Ames Housing Data

Usage

1
2
3
4
5

Details

For the processed version, the exact details can be found in the code of make_ames but a summary of the differences between these data sets and ames_raw is:

make_ordinal_ames is the same as make_ames but many factor variables were changed to class ordered (see below).

The documentation for ames_raw() contains descriptions of the columns although, as noted above, the column names in ames_raw() are slightly different from the processed versions.

make_ames_new() creates a data set of new properties. These were populated using less data sources than the original and lack a number of the condition and quality. Both properties were unsold at the time of this writing.

Value

A tibble with the data.

Examples

1
2
3
4
5
6
7
ames <- make_ames()
nrow(ames)
summary(ames$Sale_Price)

ames_ord <- make_ordinal_ames()
ord_vars <- vapply(ames_ord, is.ordered, logical(1))
names(ord_vars)[ord_vars]

Example output

[1] 2930
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
  12789  129500  160000  180796  213500  755000 
 [1] "Lot_Shape"      "Land_Contour"   "Utilities"      "Land_Slope"    
 [5] "Overall_Qual"   "Overall_Cond"   "Exter_Qual"     "Exter_Cond"    
 [9] "Bsmt_Qual"      "Bsmt_Cond"      "Bsmt_Exposure"  "BsmtFin_Type_1"
[13] "BsmtFin_Type_2" "Heating_QC"     "Electrical"     "Kitchen_Qual"  
[17] "Functional"     "Fireplace_Qu"   "Garage_Finish"  "Garage_Qual"   
[21] "Garage_Cond"    "Paved_Drive"    "Pool_QC"        "Fence"         

AmesHousing documentation built on July 2, 2020, 3:26 a.m.