Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment, you will be working with a dataset on housing prices. The dataset contains information about various houses, including their location, size, and
In this assignment, you will be working with a dataset on housing prices. The dataset contains information about various houses, including their location, size, and price. Your task is to read the dataset, clean it and perform some basic data analysis.
The dataset is: Housing.csv
Read the file, Houasing.csv in RStudio making sure strings are read as factors. Save it to a dataframe called housingdata. Print the first observations to verify the completion.Overwrite the housingdata dataset with ONLY the following variables columns: price, area, bedrooms, stories, basement, furnishingstatus. Determine the variable types of each variable column in the new data frame.Determine the variable types int num or factor of each variable column in the data frame.Generate summary statistics for all variables of housingdata.Create bar charts of ALL the variables that are of class factor. Describe what you see ie which level is most commonCreate histograms of the variables price and area. Describe what you see ie shape of the distributionsCreate a scatter plot with price on the Yaxis and area on the Xaxis. Describe what you see in the relationship.Subset the data into a data frame called housingbasement that includes only homes with basement that is with values for the variable basement equal to "yes" Use the head function to print the first few lines of the resulting dataframe.Get a pie chart for the variable furnishingstatus on the housingbasement dataset.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started