Skip to contents

Automatic Data Cleaning

Usage

DataCleaning(Data, Y_var)

Arguments

Data

The imported Data Frame

Y_var

The X variable

Value

The cleaned data.

Examples

DataCleaning(Data = TangledFeatures::Housing_Prices_dataset,  Y_var = 'SalePrice')
#> $Cleaned_Data
#>         id ms_sub_class lot_frontage lot_area overall_qual overall_cond
#>    1:    1           60           65     8450            7            5
#>    2:    2           20           80     9600            6            8
#>    3:    3           60           68    11250            7            5
#>    4:    4           70           60     9550            7            5
#>    5:    5           60           84    14260            8            5
#>   ---                                                                  
#> 1456: 1456           60           62     7917            6            5
#> 1457: 1457           20           85    13175            6            6
#> 1458: 1458           70           66     9042            7            9
#> 1459: 1459           20           68     9717            5            6
#> 1460: 1460           20           75     9937            5            6
#>       year_built year_remod_add mas_vnr_area bsmt_fin_sf1 bsmt_fin_sf2
#>    1:       2003           2003          196          706            0
#>    2:       1976           1976            0          978            0
#>    3:       2001           2002          162          486            0
#>    4:       1915           1970            0          216            0
#>    5:       2000           2000          350          655            0
#>   ---                                                                 
#> 1456:       1999           2000            0            0            0
#> 1457:       1978           1988          119          790          163
#> 1458:       1941           2006            0          275            0
#> 1459:       1950           1996            0           49         1029
#> 1460:       1965           1965            0          830          290
#>       bsmt_unf_sf total_bsmt_sf x1st_flr_sf x2nd_flr_sf low_qual_fin_sf
#>    1:         150           856         856         854               0
#>    2:         284          1262        1262           0               0
#>    3:         434           920         920         866               0
#>    4:         540           756         961         756               0
#>    5:         490          1145        1145        1053               0
#>   ---                                                                  
#> 1456:         953           953         953         694               0
#> 1457:         589          1542        2073           0               0
#> 1458:         877          1152        1188        1152               0
#> 1459:           0          1078        1078           0               0
#> 1460:         136          1256        1256           0               0
#>       gr_liv_area bsmt_full_bath bsmt_half_bath full_bath half_bath
#>    1:        1710              1              0         2         1
#>    2:        1262              0              1         2         0
#>    3:        1786              1              0         2         1
#>    4:        1717              1              0         1         0
#>    5:        2198              1              0         2         1
#>   ---                                                              
#> 1456:        1647              0              0         2         1
#> 1457:        2073              1              0         2         0
#> 1458:        2340              0              0         2         0
#> 1459:        1078              1              0         1         0
#> 1460:        1256              1              0         1         1
#>       bedroom_abv_gr kitchen_abv_gr tot_rms_abv_grd fireplaces garage_yr_blt
#>    1:              3              1               8          0          2003
#>    2:              3              1               6          1          1976
#>    3:              3              1               6          1          2001
#>    4:              3              1               7          1          1998
#>    5:              4              1               9          1          2000
#>   ---                                                                       
#> 1456:              3              1               7          1          1999
#> 1457:              3              1               7          2          1978
#> 1458:              4              1               9          2          1941
#> 1459:              2              1               5          0          1950
#> 1460:              3              1               6          0          1965
#>       garage_cars garage_area wood_deck_sf open_porch_sf enclosed_porch
#>    1:           2         548            0            61              0
#>    2:           2         460          298             0              0
#>    3:           2         608            0            42              0
#>    4:           3         642            0            35            272
#>    5:           3         836          192            84              0
#>   ---                                                                  
#> 1456:           2         460            0            40              0
#> 1457:           2         500          349             0              0
#> 1458:           1         252            0            60              0
#> 1459:           1         240          366             0            112
#> 1460:           1         276          736            68              0
#>       x3ssn_porch screen_porch pool_area misc_val mo_sold yr_sold sale_price
#>    1:           0            0         0        0       2    2008     208500
#>    2:           0            0         0        0       5    2007     181500
#>    3:           0            0         0        0       9    2008     223500
#>    4:           0            0         0        0       2    2006     140000
#>    5:           0            0         0        0      12    2008     250000
#>   ---                                                                       
#> 1456:           0            0         0        0       8    2007     175000
#> 1457:           0            0         0        0       2    2010     210000
#> 1458:           0            0         0     2500       5    2010     266500
#> 1459:           0            0         0        0       4    2010     142125
#> 1460:           0            0         0        0       6    2008     147500
#>       ms_zoning_c_all ms_zoning_fv ms_zoning_rh ms_zoning_rl ms_zoning_rm
#>    1:               0            0            0            1            0
#>    2:               0            0            0            1            0
#>    3:               0            0            0            1            0
#>    4:               0            0            0            1            0
#>    5:               0            0            0            1            0
#>   ---                                                                    
#> 1456:               0            0            0            1            0
#> 1457:               0            0            0            1            0
#> 1458:               0            0            0            1            0
#> 1459:               0            0            0            1            0
#> 1460:               0            0            0            1            0
#>       street_grvl street_pave alley_0 alley_grvl alley_pave lot_shape_ir1
#>    1:           0           1       1          0          0             0
#>    2:           0           1       1          0          0             0
#>    3:           0           1       1          0          0             1
#>    4:           0           1       1          0          0             1
#>    5:           0           1       1          0          0             1
#>   ---                                                                    
#> 1456:           0           1       1          0          0             0
#> 1457:           0           1       1          0          0             0
#> 1458:           0           1       1          0          0             0
#> 1459:           0           1       1          0          0             0
#> 1460:           0           1       1          0          0             0
#>       lot_shape_ir2 lot_shape_ir3 lot_shape_reg land_contour_bnk
#>    1:             0             0             1                0
#>    2:             0             0             1                0
#>    3:             0             0             0                0
#>    4:             0             0             0                0
#>    5:             0             0             0                0
#>   ---                                                           
#> 1456:             0             0             1                0
#> 1457:             0             0             1                0
#> 1458:             0             0             1                0
#> 1459:             0             0             1                0
#> 1460:             0             0             1                0
#>       land_contour_hls land_contour_low land_contour_lvl utilities_all_pub
#>    1:                0                0                1                 1
#>    2:                0                0                1                 1
#>    3:                0                0                1                 1
#>    4:                0                0                1                 1
#>    5:                0                0                1                 1
#>   ---                                                                     
#> 1456:                0                0                1                 1
#> 1457:                0                0                1                 1
#> 1458:                0                0                1                 1
#> 1459:                0                0                1                 1
#> 1460:                0                0                1                 1
#>       utilities_no_se_wa lot_config_corner lot_config_cul_d_sac lot_config_fr2
#>    1:                  0                 0                    0              0
#>    2:                  0                 0                    0              1
#>    3:                  0                 0                    0              0
#>    4:                  0                 1                    0              0
#>    5:                  0                 0                    0              1
#>   ---                                                                         
#> 1456:                  0                 0                    0              0
#> 1457:                  0                 0                    0              0
#> 1458:                  0                 0                    0              0
#> 1459:                  0                 0                    0              0
#> 1460:                  0                 0                    0              0
#>       lot_config_fr3 lot_config_inside land_slope_gtl land_slope_mod
#>    1:              0                 1              1              0
#>    2:              0                 0              1              0
#>    3:              0                 1              1              0
#>    4:              0                 0              1              0
#>    5:              0                 0              1              0
#>   ---                                                               
#> 1456:              0                 1              1              0
#> 1457:              0                 1              1              0
#> 1458:              0                 1              1              0
#> 1459:              0                 1              1              0
#> 1460:              0                 1              1              0
#>       land_slope_sev neighborhood_blmngtn neighborhood_blueste
#>    1:              0                    0                    0
#>    2:              0                    0                    0
#>    3:              0                    0                    0
#>    4:              0                    0                    0
#>    5:              0                    0                    0
#>   ---                                                         
#> 1456:              0                    0                    0
#> 1457:              0                    0                    0
#> 1458:              0                    0                    0
#> 1459:              0                    0                    0
#> 1460:              0                    0                    0
#>       neighborhood_br_dale neighborhood_brk_side neighborhood_clear_cr
#>    1:                    0                     0                     0
#>    2:                    0                     0                     0
#>    3:                    0                     0                     0
#>    4:                    0                     0                     0
#>    5:                    0                     0                     0
#>   ---                                                                 
#> 1456:                    0                     0                     0
#> 1457:                    0                     0                     0
#> 1458:                    0                     0                     0
#> 1459:                    0                     0                     0
#> 1460:                    0                     0                     0
#>       neighborhood_collg_cr neighborhood_crawfor neighborhood_edwards
#>    1:                     1                    0                    0
#>    2:                     0                    0                    0
#>    3:                     1                    0                    0
#>    4:                     0                    1                    0
#>    5:                     0                    0                    0
#>   ---                                                                
#> 1456:                     0                    0                    0
#> 1457:                     0                    0                    0
#> 1458:                     0                    1                    0
#> 1459:                     0                    0                    0
#> 1460:                     0                    0                    1
#>       neighborhood_gilbert neighborhood_idotrr neighborhood_meadow_v
#>    1:                    0                   0                     0
#>    2:                    0                   0                     0
#>    3:                    0                   0                     0
#>    4:                    0                   0                     0
#>    5:                    0                   0                     0
#>   ---                                                               
#> 1456:                    1                   0                     0
#> 1457:                    0                   0                     0
#> 1458:                    0                   0                     0
#> 1459:                    0                   0                     0
#> 1460:                    0                   0                     0
#>       neighborhood_mitchel neighborhood_n_ames neighborhood_n_pk_vill
#>    1:                    0                   0                      0
#>    2:                    0                   0                      0
#>    3:                    0                   0                      0
#>    4:                    0                   0                      0
#>    5:                    0                   0                      0
#>   ---                                                                
#> 1456:                    0                   0                      0
#> 1457:                    0                   0                      0
#> 1458:                    0                   0                      0
#> 1459:                    0                   1                      0
#> 1460:                    0                   0                      0
#>       neighborhood_nw_ames neighborhood_no_ridge neighborhood_nridg_ht
#>    1:                    0                     0                     0
#>    2:                    0                     0                     0
#>    3:                    0                     0                     0
#>    4:                    0                     0                     0
#>    5:                    0                     1                     0
#>   ---                                                                 
#> 1456:                    0                     0                     0
#> 1457:                    1                     0                     0
#> 1458:                    0                     0                     0
#> 1459:                    0                     0                     0
#> 1460:                    0                     0                     0
#>       neighborhood_old_town neighborhood_swisu neighborhood_sawyer
#>    1:                     0                  0                   0
#>    2:                     0                  0                   0
#>    3:                     0                  0                   0
#>    4:                     0                  0                   0
#>    5:                     0                  0                   0
#>   ---                                                             
#> 1456:                     0                  0                   0
#> 1457:                     0                  0                   0
#> 1458:                     0                  0                   0
#> 1459:                     0                  0                   0
#> 1460:                     0                  0                   0
#>       neighborhood_sawyer_w neighborhood_somerst neighborhood_stone_br
#>    1:                     0                    0                     0
#>    2:                     0                    0                     0
#>    3:                     0                    0                     0
#>    4:                     0                    0                     0
#>    5:                     0                    0                     0
#>   ---                                                                 
#> 1456:                     0                    0                     0
#> 1457:                     0                    0                     0
#> 1458:                     0                    0                     0
#> 1459:                     0                    0                     0
#> 1460:                     0                    0                     0
#>       neighborhood_timber neighborhood_veenker condition1_artery
#>    1:                   0                    0                 0
#>    2:                   0                    1                 0
#>    3:                   0                    0                 0
#>    4:                   0                    0                 0
#>    5:                   0                    0                 0
#>   ---                                                           
#> 1456:                   0                    0                 0
#> 1457:                   0                    0                 0
#> 1458:                   0                    0                 0
#> 1459:                   0                    0                 0
#> 1460:                   0                    0                 0
#>       condition1_feedr condition1_norm condition1_pos_a condition1_pos_n
#>    1:                0               1                0                0
#>    2:                1               0                0                0
#>    3:                0               1                0                0
#>    4:                0               1                0                0
#>    5:                0               1                0                0
#>   ---                                                                   
#> 1456:                0               1                0                0
#> 1457:                0               1                0                0
#> 1458:                0               1                0                0
#> 1459:                0               1                0                0
#> 1460:                0               1                0                0
#>       condition1_rr_ae condition1_rr_an condition1_rr_ne condition1_rr_nn
#>    1:                0                0                0                0
#>    2:                0                0                0                0
#>    3:                0                0                0                0
#>    4:                0                0                0                0
#>    5:                0                0                0                0
#>   ---                                                                    
#> 1456:                0                0                0                0
#> 1457:                0                0                0                0
#> 1458:                0                0                0                0
#> 1459:                0                0                0                0
#> 1460:                0                0                0                0
#>       condition2_artery condition2_feedr condition2_norm condition2_pos_a
#>    1:                 0                0               1                0
#>    2:                 0                0               1                0
#>    3:                 0                0               1                0
#>    4:                 0                0               1                0
#>    5:                 0                0               1                0
#>   ---                                                                    
#> 1456:                 0                0               1                0
#> 1457:                 0                0               1                0
#> 1458:                 0                0               1                0
#> 1459:                 0                0               1                0
#> 1460:                 0                0               1                0
#>       condition2_pos_n condition2_rr_ae condition2_rr_an condition2_rr_nn
#>    1:                0                0                0                0
#>    2:                0                0                0                0
#>    3:                0                0                0                0
#>    4:                0                0                0                0
#>    5:                0                0                0                0
#>   ---                                                                    
#> 1456:                0                0                0                0
#> 1457:                0                0                0                0
#> 1458:                0                0                0                0
#> 1459:                0                0                0                0
#> 1460:                0                0                0                0
#>       bldg_type_1fam bldg_type_2fm_con bldg_type_duplex bldg_type_twnhs
#>    1:              1                 0                0               0
#>    2:              1                 0                0               0
#>    3:              1                 0                0               0
#>    4:              1                 0                0               0
#>    5:              1                 0                0               0
#>   ---                                                                  
#> 1456:              1                 0                0               0
#> 1457:              1                 0                0               0
#> 1458:              1                 0                0               0
#> 1459:              1                 0                0               0
#> 1460:              1                 0                0               0
#>       bldg_type_twnhs_e house_style_1_5fin house_style_1_5unf
#>    1:                 0                  0                  0
#>    2:                 0                  0                  0
#>    3:                 0                  0                  0
#>    4:                 0                  0                  0
#>    5:                 0                  0                  0
#>   ---                                                        
#> 1456:                 0                  0                  0
#> 1457:                 0                  0                  0
#> 1458:                 0                  0                  0
#> 1459:                 0                  0                  0
#> 1460:                 0                  0                  0
#>       house_style_1story house_style_2_5fin house_style_2_5unf
#>    1:                  0                  0                  0
#>    2:                  1                  0                  0
#>    3:                  0                  0                  0
#>    4:                  0                  0                  0
#>    5:                  0                  0                  0
#>   ---                                                         
#> 1456:                  0                  0                  0
#> 1457:                  1                  0                  0
#> 1458:                  0                  0                  0
#> 1459:                  1                  0                  0
#> 1460:                  1                  0                  0
#>       house_style_2story house_style_s_foyer house_style_s_lvl roof_style_flat
#>    1:                  1                   0                 0               0
#>    2:                  0                   0                 0               0
#>    3:                  1                   0                 0               0
#>    4:                  1                   0                 0               0
#>    5:                  1                   0                 0               0
#>   ---                                                                         
#> 1456:                  1                   0                 0               0
#> 1457:                  0                   0                 0               0
#> 1458:                  1                   0                 0               0
#> 1459:                  0                   0                 0               0
#> 1460:                  0                   0                 0               0
#>       roof_style_gable roof_style_gambrel roof_style_hip roof_style_mansard
#>    1:                1                  0              0                  0
#>    2:                1                  0              0                  0
#>    3:                1                  0              0                  0
#>    4:                1                  0              0                  0
#>    5:                1                  0              0                  0
#>   ---                                                                      
#> 1456:                1                  0              0                  0
#> 1457:                1                  0              0                  0
#> 1458:                1                  0              0                  0
#> 1459:                0                  0              1                  0
#> 1460:                1                  0              0                  0
#>       roof_style_shed roof_matl_cly_tile roof_matl_comp_shg roof_matl_membran
#>    1:               0                  0                  1                 0
#>    2:               0                  0                  1                 0
#>    3:               0                  0                  1                 0
#>    4:               0                  0                  1                 0
#>    5:               0                  0                  1                 0
#>   ---                                                                        
#> 1456:               0                  0                  1                 0
#> 1457:               0                  0                  1                 0
#> 1458:               0                  0                  1                 0
#> 1459:               0                  0                  1                 0
#> 1460:               0                  0                  1                 0
#>       roof_matl_metal roof_matl_roll roof_matl_tar_grv roof_matl_wd_shake
#>    1:               0              0                 0                  0
#>    2:               0              0                 0                  0
#>    3:               0              0                 0                  0
#>    4:               0              0                 0                  0
#>    5:               0              0                 0                  0
#>   ---                                                                    
#> 1456:               0              0                 0                  0
#> 1457:               0              0                 0                  0
#> 1458:               0              0                 0                  0
#> 1459:               0              0                 0                  0
#> 1460:               0              0                 0                  0
#>       roof_matl_wd_shngl exterior1st_asb_shng exterior1st_asph_shn
#>    1:                  0                    0                    0
#>    2:                  0                    0                    0
#>    3:                  0                    0                    0
#>    4:                  0                    0                    0
#>    5:                  0                    0                    0
#>   ---                                                             
#> 1456:                  0                    0                    0
#> 1457:                  0                    0                    0
#> 1458:                  0                    0                    0
#> 1459:                  0                    0                    0
#> 1460:                  0                    0                    0
#>       exterior1st_brk_comm exterior1st_brk_face exterior1st_c_block
#>    1:                    0                    0                   0
#>    2:                    0                    0                   0
#>    3:                    0                    0                   0
#>    4:                    0                    0                   0
#>    5:                    0                    0                   0
#>   ---                                                              
#> 1456:                    0                    0                   0
#> 1457:                    0                    0                   0
#> 1458:                    0                    0                   0
#> 1459:                    0                    0                   0
#> 1460:                    0                    0                   0
#>       exterior1st_cemnt_bd exterior1st_hd_board exterior1st_im_stucc
#>    1:                    0                    0                    0
#>    2:                    0                    0                    0
#>    3:                    0                    0                    0
#>    4:                    0                    0                    0
#>    5:                    0                    0                    0
#>   ---                                                               
#> 1456:                    0                    0                    0
#> 1457:                    0                    0                    0
#> 1458:                    1                    0                    0
#> 1459:                    0                    0                    0
#> 1460:                    0                    1                    0
#>       exterior1st_metal_sd exterior1st_plywood exterior1st_stone
#>    1:                    0                   0                 0
#>    2:                    1                   0                 0
#>    3:                    0                   0                 0
#>    4:                    0                   0                 0
#>    5:                    0                   0                 0
#>   ---                                                           
#> 1456:                    0                   0                 0
#> 1457:                    0                   1                 0
#> 1458:                    0                   0                 0
#> 1459:                    1                   0                 0
#> 1460:                    0                   0                 0
#>       exterior1st_stucco exterior1st_vinyl_sd exterior1st_wd_sdng
#>    1:                  0                    1                   0
#>    2:                  0                    0                   0
#>    3:                  0                    1                   0
#>    4:                  0                    0                   1
#>    5:                  0                    1                   0
#>   ---                                                            
#> 1456:                  0                    1                   0
#> 1457:                  0                    0                   0
#> 1458:                  0                    0                   0
#> 1459:                  0                    0                   0
#> 1460:                  0                    0                   0
#>       exterior1st_wd_shing exterior2nd_asb_shng exterior2nd_asph_shn
#>    1:                    0                    0                    0
#>    2:                    0                    0                    0
#>    3:                    0                    0                    0
#>    4:                    0                    0                    0
#>    5:                    0                    0                    0
#>   ---                                                               
#> 1456:                    0                    0                    0
#> 1457:                    0                    0                    0
#> 1458:                    0                    0                    0
#> 1459:                    0                    0                    0
#> 1460:                    0                    0                    0
#>       exterior2nd_brk_cmn exterior2nd_brk_face exterior2nd_c_block
#>    1:                   0                    0                   0
#>    2:                   0                    0                   0
#>    3:                   0                    0                   0
#>    4:                   0                    0                   0
#>    5:                   0                    0                   0
#>   ---                                                             
#> 1456:                   0                    0                   0
#> 1457:                   0                    0                   0
#> 1458:                   0                    0                   0
#> 1459:                   0                    0                   0
#> 1460:                   0                    0                   0
#>       exterior2nd_cment_bd exterior2nd_hd_board exterior2nd_im_stucc
#>    1:                    0                    0                    0
#>    2:                    0                    0                    0
#>    3:                    0                    0                    0
#>    4:                    0                    0                    0
#>    5:                    0                    0                    0
#>   ---                                                               
#> 1456:                    0                    0                    0
#> 1457:                    0                    0                    0
#> 1458:                    1                    0                    0
#> 1459:                    0                    0                    0
#> 1460:                    0                    1                    0
#>       exterior2nd_metal_sd exterior2nd_other exterior2nd_plywood
#>    1:                    0                 0                   0
#>    2:                    1                 0                   0
#>    3:                    0                 0                   0
#>    4:                    0                 0                   0
#>    5:                    0                 0                   0
#>   ---                                                           
#> 1456:                    0                 0                   0
#> 1457:                    0                 0                   1
#> 1458:                    0                 0                   0
#> 1459:                    1                 0                   0
#> 1460:                    0                 0                   0
#>       exterior2nd_stone exterior2nd_stucco exterior2nd_vinyl_sd
#>    1:                 0                  0                    1
#>    2:                 0                  0                    0
#>    3:                 0                  0                    1
#>    4:                 0                  0                    0
#>    5:                 0                  0                    1
#>   ---                                                          
#> 1456:                 0                  0                    1
#> 1457:                 0                  0                    0
#> 1458:                 0                  0                    0
#> 1459:                 0                  0                    0
#> 1460:                 0                  0                    0
#>       exterior2nd_wd_sdng exterior2nd_wd_shng mas_vnr_type_0
#>    1:                   0                   0              0
#>    2:                   0                   0              0
#>    3:                   0                   0              0
#>    4:                   0                   1              0
#>    5:                   0                   0              0
#>   ---                                                       
#> 1456:                   0                   0              0
#> 1457:                   0                   0              0
#> 1458:                   0                   0              0
#> 1459:                   0                   0              0
#> 1460:                   0                   0              0
#>       mas_vnr_type_brk_cmn mas_vnr_type_brk_face mas_vnr_type_none
#>    1:                    0                     1                 0
#>    2:                    0                     0                 1
#>    3:                    0                     1                 0
#>    4:                    0                     0                 1
#>    5:                    0                     1                 0
#>   ---                                                             
#> 1456:                    0                     0                 1
#> 1457:                    0                     0                 0
#> 1458:                    0                     0                 1
#> 1459:                    0                     0                 1
#> 1460:                    0                     0                 1
#>       mas_vnr_type_stone exter_qual_ex exter_qual_fa exter_qual_gd
#>    1:                  0             0             0             1
#>    2:                  0             0             0             0
#>    3:                  0             0             0             1
#>    4:                  0             0             0             0
#>    5:                  0             0             0             1
#>   ---                                                             
#> 1456:                  0             0             0             0
#> 1457:                  1             0             0             0
#> 1458:                  0             1             0             0
#> 1459:                  0             0             0             0
#> 1460:                  0             0             0             1
#>       exter_qual_ta exter_cond_ex exter_cond_fa exter_cond_gd exter_cond_po
#>    1:             0             0             0             0             0
#>    2:             1             0             0             0             0
#>    3:             0             0             0             0             0
#>    4:             1             0             0             0             0
#>    5:             0             0             0             0             0
#>   ---                                                                      
#> 1456:             1             0             0             0             0
#> 1457:             1             0             0             0             0
#> 1458:             0             0             0             1             0
#> 1459:             1             0             0             0             0
#> 1460:             0             0             0             0             0
#>       exter_cond_ta foundation_brk_til foundation_c_block foundation_p_conc
#>    1:             1                  0                  0                 1
#>    2:             1                  0                  1                 0
#>    3:             1                  0                  0                 1
#>    4:             1                  1                  0                 0
#>    5:             1                  0                  0                 1
#>   ---                                                                      
#> 1456:             1                  0                  0                 1
#> 1457:             1                  0                  1                 0
#> 1458:             0                  0                  0                 0
#> 1459:             1                  0                  1                 0
#> 1460:             1                  0                  1                 0
#>       foundation_slab foundation_stone foundation_wood bsmt_qual_0 bsmt_qual_ex
#>    1:               0                0               0           0            0
#>    2:               0                0               0           0            0
#>    3:               0                0               0           0            0
#>    4:               0                0               0           0            0
#>    5:               0                0               0           0            0
#>   ---                                                                          
#> 1456:               0                0               0           0            0
#> 1457:               0                0               0           0            0
#> 1458:               0                1               0           0            0
#> 1459:               0                0               0           0            0
#> 1460:               0                0               0           0            0
#>       bsmt_qual_fa bsmt_qual_gd bsmt_qual_ta bsmt_cond_0 bsmt_cond_fa
#>    1:            0            1            0           0            0
#>    2:            0            1            0           0            0
#>    3:            0            1            0           0            0
#>    4:            0            0            1           0            0
#>    5:            0            1            0           0            0
#>   ---                                                                
#> 1456:            0            1            0           0            0
#> 1457:            0            1            0           0            0
#> 1458:            0            0            1           0            0
#> 1459:            0            0            1           0            0
#> 1460:            0            0            1           0            0
#>       bsmt_cond_gd bsmt_cond_po bsmt_cond_ta bsmt_exposure_0 bsmt_exposure_av
#>    1:            0            0            1               0                0
#>    2:            0            0            1               0                0
#>    3:            0            0            1               0                0
#>    4:            1            0            0               0                0
#>    5:            0            0            1               0                1
#>   ---                                                                        
#> 1456:            0            0            1               0                0
#> 1457:            0            0            1               0                0
#> 1458:            1            0            0               0                0
#> 1459:            0            0            1               0                0
#> 1460:            0            0            1               0                0
#>       bsmt_exposure_gd bsmt_exposure_mn bsmt_exposure_no bsmt_fin_type1_0
#>    1:                0                0                1                0
#>    2:                1                0                0                0
#>    3:                0                1                0                0
#>    4:                0                0                1                0
#>    5:                0                0                0                0
#>   ---                                                                    
#> 1456:                0                0                1                0
#> 1457:                0                0                1                0
#> 1458:                0                0                1                0
#> 1459:                0                1                0                0
#> 1460:                0                0                1                0
#>       bsmt_fin_type1_alq bsmt_fin_type1_blq bsmt_fin_type1_glq
#>    1:                  0                  0                  1
#>    2:                  1                  0                  0
#>    3:                  0                  0                  1
#>    4:                  1                  0                  0
#>    5:                  0                  0                  1
#>   ---                                                         
#> 1456:                  0                  0                  0
#> 1457:                  1                  0                  0
#> 1458:                  0                  0                  1
#> 1459:                  0                  0                  1
#> 1460:                  0                  1                  0
#>       bsmt_fin_type1_lw_q bsmt_fin_type1_rec bsmt_fin_type1_unf
#>    1:                   0                  0                  0
#>    2:                   0                  0                  0
#>    3:                   0                  0                  0
#>    4:                   0                  0                  0
#>    5:                   0                  0                  0
#>   ---                                                          
#> 1456:                   0                  0                  1
#> 1457:                   0                  0                  0
#> 1458:                   0                  0                  0
#> 1459:                   0                  0                  0
#> 1460:                   0                  0                  0
#>       bsmt_fin_type2_0 bsmt_fin_type2_alq bsmt_fin_type2_blq bsmt_fin_type2_glq
#>    1:                0                  0                  0                  0
#>    2:                0                  0                  0                  0
#>    3:                0                  0                  0                  0
#>    4:                0                  0                  0                  0
#>    5:                0                  0                  0                  0
#>   ---                                                                          
#> 1456:                0                  0                  0                  0
#> 1457:                0                  0                  0                  0
#> 1458:                0                  0                  0                  0
#> 1459:                0                  0                  0                  0
#> 1460:                0                  0                  0                  0
#>       bsmt_fin_type2_lw_q bsmt_fin_type2_rec bsmt_fin_type2_unf heating_floor
#>    1:                   0                  0                  1             0
#>    2:                   0                  0                  1             0
#>    3:                   0                  0                  1             0
#>    4:                   0                  0                  1             0
#>    5:                   0                  0                  1             0
#>   ---                                                                        
#> 1456:                   0                  0                  1             0
#> 1457:                   0                  1                  0             0
#> 1458:                   0                  0                  1             0
#> 1459:                   0                  1                  0             0
#> 1460:                   1                  0                  0             0
#>       heating_gas_a heating_gas_w heating_grav heating_oth_w heating_wall
#>    1:             1             0            0             0            0
#>    2:             1             0            0             0            0
#>    3:             1             0            0             0            0
#>    4:             1             0            0             0            0
#>    5:             1             0            0             0            0
#>   ---                                                                    
#> 1456:             1             0            0             0            0
#> 1457:             1             0            0             0            0
#> 1458:             1             0            0             0            0
#> 1459:             1             0            0             0            0
#> 1460:             1             0            0             0            0
#>       heating_qc_ex heating_qc_fa heating_qc_gd heating_qc_po heating_qc_ta
#>    1:             1             0             0             0             0
#>    2:             1             0             0             0             0
#>    3:             1             0             0             0             0
#>    4:             0             0             1             0             0
#>    5:             1             0             0             0             0
#>   ---                                                                      
#> 1456:             1             0             0             0             0
#> 1457:             0             0             0             0             1
#> 1458:             1             0             0             0             0
#> 1459:             0             0             1             0             0
#> 1460:             0             0             1             0             0
#>       central_air_n central_air_y electrical_0 electrical_fuse_a
#>    1:             0             1            0                 0
#>    2:             0             1            0                 0
#>    3:             0             1            0                 0
#>    4:             0             1            0                 0
#>    5:             0             1            0                 0
#>   ---                                                           
#> 1456:             0             1            0                 0
#> 1457:             0             1            0                 0
#> 1458:             0             1            0                 0
#> 1459:             0             1            0                 1
#> 1460:             0             1            0                 0
#>       electrical_fuse_f electrical_fuse_p electrical_mix electrical_s_brkr
#>    1:                 0                 0              0                 1
#>    2:                 0                 0              0                 1
#>    3:                 0                 0              0                 1
#>    4:                 0                 0              0                 1
#>    5:                 0                 0              0                 1
#>   ---                                                                     
#> 1456:                 0                 0              0                 1
#> 1457:                 0                 0              0                 1
#> 1458:                 0                 0              0                 1
#> 1459:                 0                 0              0                 0
#> 1460:                 0                 0              0                 1
#>       kitchen_qual_ex kitchen_qual_fa kitchen_qual_gd kitchen_qual_ta
#>    1:               0               0               1               0
#>    2:               0               0               0               1
#>    3:               0               0               1               0
#>    4:               0               0               1               0
#>    5:               0               0               1               0
#>   ---                                                                
#> 1456:               0               0               0               1
#> 1457:               0               0               0               1
#> 1458:               0               0               1               0
#> 1459:               0               0               1               0
#> 1460:               0               0               0               1
#>       functional_maj1 functional_maj2 functional_min1 functional_min2
#>    1:               0               0               0               0
#>    2:               0               0               0               0
#>    3:               0               0               0               0
#>    4:               0               0               0               0
#>    5:               0               0               0               0
#>   ---                                                                
#> 1456:               0               0               0               0
#> 1457:               0               0               1               0
#> 1458:               0               0               0               0
#> 1459:               0               0               0               0
#> 1460:               0               0               0               0
#>       functional_mod functional_sev functional_typ fireplace_qu_0
#>    1:              0              0              1              1
#>    2:              0              0              1              0
#>    3:              0              0              1              0
#>    4:              0              0              1              0
#>    5:              0              0              1              0
#>   ---                                                            
#> 1456:              0              0              1              0
#> 1457:              0              0              0              0
#> 1458:              0              0              1              0
#> 1459:              0              0              1              1
#> 1460:              0              0              1              1
#>       fireplace_qu_ex fireplace_qu_fa fireplace_qu_gd fireplace_qu_po
#>    1:               0               0               0               0
#>    2:               0               0               0               0
#>    3:               0               0               0               0
#>    4:               0               0               1               0
#>    5:               0               0               0               0
#>   ---                                                                
#> 1456:               0               0               0               0
#> 1457:               0               0               0               0
#> 1458:               0               0               1               0
#> 1459:               0               0               0               0
#> 1460:               0               0               0               0
#>       fireplace_qu_ta garage_type_0 garage_type_2types garage_type_attchd
#>    1:               0             0                  0                  1
#>    2:               1             0                  0                  1
#>    3:               1             0                  0                  1
#>    4:               0             0                  0                  0
#>    5:               1             0                  0                  1
#>   ---                                                                    
#> 1456:               1             0                  0                  1
#> 1457:               1             0                  0                  1
#> 1458:               0             0                  0                  1
#> 1459:               0             0                  0                  1
#> 1460:               0             0                  0                  1
#>       garage_type_basment garage_type_built_in garage_type_car_port
#>    1:                   0                    0                    0
#>    2:                   0                    0                    0
#>    3:                   0                    0                    0
#>    4:                   0                    0                    0
#>    5:                   0                    0                    0
#>   ---                                                              
#> 1456:                   0                    0                    0
#> 1457:                   0                    0                    0
#> 1458:                   0                    0                    0
#> 1459:                   0                    0                    0
#> 1460:                   0                    0                    0
#>       garage_type_detchd garage_finish_0 garage_finish_fin garage_finish_r_fn
#>    1:                  0               0                 0                  1
#>    2:                  0               0                 0                  1
#>    3:                  0               0                 0                  1
#>    4:                  1               0                 0                  0
#>    5:                  0               0                 0                  1
#>   ---                                                                        
#> 1456:                  0               0                 0                  1
#> 1457:                  0               0                 0                  0
#> 1458:                  0               0                 0                  1
#> 1459:                  0               0                 0                  0
#> 1460:                  0               0                 1                  0
#>       garage_finish_unf garage_qual_0 garage_qual_ex garage_qual_fa
#>    1:                 0             0              0              0
#>    2:                 0             0              0              0
#>    3:                 0             0              0              0
#>    4:                 1             0              0              0
#>    5:                 0             0              0              0
#>   ---                                                              
#> 1456:                 0             0              0              0
#> 1457:                 1             0              0              0
#> 1458:                 0             0              0              0
#> 1459:                 1             0              0              0
#> 1460:                 0             0              0              0
#>       garage_qual_gd garage_qual_po garage_qual_ta garage_cond_0 garage_cond_ex
#>    1:              0              0              1             0              0
#>    2:              0              0              1             0              0
#>    3:              0              0              1             0              0
#>    4:              0              0              1             0              0
#>    5:              0              0              1             0              0
#>   ---                                                                          
#> 1456:              0              0              1             0              0
#> 1457:              0              0              1             0              0
#> 1458:              0              0              1             0              0
#> 1459:              0              0              1             0              0
#> 1460:              0              0              1             0              0
#>       garage_cond_fa garage_cond_gd garage_cond_po garage_cond_ta paved_drive_n
#>    1:              0              0              0              1             0
#>    2:              0              0              0              1             0
#>    3:              0              0              0              1             0
#>    4:              0              0              0              1             0
#>    5:              0              0              0              1             0
#>   ---                                                                          
#> 1456:              0              0              0              1             0
#> 1457:              0              0              0              1             0
#> 1458:              0              0              0              1             0
#> 1459:              0              0              0              1             0
#> 1460:              0              0              0              1             0
#>       paved_drive_p paved_drive_y pool_qc_0 pool_qc_ex pool_qc_fa pool_qc_gd
#>    1:             0             1         1          0          0          0
#>    2:             0             1         1          0          0          0
#>    3:             0             1         1          0          0          0
#>    4:             0             1         1          0          0          0
#>    5:             0             1         1          0          0          0
#>   ---                                                                       
#> 1456:             0             1         1          0          0          0
#> 1457:             0             1         1          0          0          0
#> 1458:             0             1         1          0          0          0
#> 1459:             0             1         1          0          0          0
#> 1460:             0             1         1          0          0          0
#>       fence_0 fence_gd_prv fence_gd_wo fence_mn_prv fence_mn_ww misc_feature_0
#>    1:       1            0           0            0           0              1
#>    2:       1            0           0            0           0              1
#>    3:       1            0           0            0           0              1
#>    4:       1            0           0            0           0              1
#>    5:       1            0           0            0           0              1
#>   ---                                                                         
#> 1456:       1            0           0            0           0              1
#> 1457:       0            0           0            1           0              1
#> 1458:       0            1           0            0           0              0
#> 1459:       1            0           0            0           0              1
#> 1460:       1            0           0            0           0              1
#>       misc_feature_gar2 misc_feature_othr misc_feature_shed misc_feature_ten_c
#>    1:                 0                 0                 0                  0
#>    2:                 0                 0                 0                  0
#>    3:                 0                 0                 0                  0
#>    4:                 0                 0                 0                  0
#>    5:                 0                 0                 0                  0
#>   ---                                                                         
#> 1456:                 0                 0                 0                  0
#> 1457:                 0                 0                 0                  0
#> 1458:                 0                 0                 1                  0
#> 1459:                 0                 0                 0                  0
#> 1460:                 0                 0                 0                  0
#>       sale_type_cod sale_type_cwd sale_type_con sale_type_con_ld
#>    1:             0             0             0                0
#>    2:             0             0             0                0
#>    3:             0             0             0                0
#>    4:             0             0             0                0
#>    5:             0             0             0                0
#>   ---                                                           
#> 1456:             0             0             0                0
#> 1457:             0             0             0                0
#> 1458:             0             0             0                0
#> 1459:             0             0             0                0
#> 1460:             0             0             0                0
#>       sale_type_con_li sale_type_con_lw sale_type_new sale_type_oth
#>    1:                0                0             0             0
#>    2:                0                0             0             0
#>    3:                0                0             0             0
#>    4:                0                0             0             0
#>    5:                0                0             0             0
#>   ---                                                              
#> 1456:                0                0             0             0
#> 1457:                0                0             0             0
#> 1458:                0                0             0             0
#> 1459:                0                0             0             0
#> 1460:                0                0             0             0
#>       sale_type_wd sale_condition_abnorml sale_condition_adj_land
#>    1:            1                      0                       0
#>    2:            1                      0                       0
#>    3:            1                      0                       0
#>    4:            1                      1                       0
#>    5:            1                      0                       0
#>   ---                                                            
#> 1456:            1                      0                       0
#> 1457:            1                      0                       0
#> 1458:            1                      0                       0
#> 1459:            1                      0                       0
#> 1460:            1                      0                       0
#>       sale_condition_alloca sale_condition_family sale_condition_normal
#>    1:                     0                     0                     1
#>    2:                     0                     0                     1
#>    3:                     0                     0                     1
#>    4:                     0                     0                     0
#>    5:                     0                     0                     1
#>   ---                                                                  
#> 1456:                     0                     0                     1
#> 1457:                     0                     0                     1
#> 1458:                     0                     0                     1
#> 1459:                     0                     0                     1
#> 1460:                     0                     0                     1
#>       sale_condition_partial
#>    1:                      0
#>    2:                      0
#>    3:                      0
#>    4:                      0
#>    5:                      0
#>   ---                       
#> 1456:                      0
#> 1457:                      0
#> 1458:                      0
#> 1459:                      0
#> 1460:                      0
#> 
#> $New_Dependent
#> [1] "sale_price"
#>