# Import data
library(tidyverse)
<- read_csv(file = "https://raw.githubusercontent.com/zief0002/epsy-5261/main/data/housing-and-income.csv") house
housing-and-income.csv
The data in housing-and-income.csv include data on house prices and household incomes for
The attributes included in the data are:
city
: City namestate
: Statehouse_income_ratio
: The ratio of median house cost to median household incomemedian_house_price
: Median listing price of the house (in thousands of dollars)median_income
: Median household income (in thousands of dollars)house_change
: 5-year change in the median house price (as a percentage)greater_30
: Percentage of mortgage holders who spend more than 30% of their household income on housing costs annually