You are on page 1of 1

Is it more expensive or less expensive to live in FL or NY?

Answer : - NY
Is the crime rate higher in FL or NY (Note a low score in crime means lower crime)?
Answer :- FL having higher crime rate
Is the crime rate higher in lower or higher house price areas?
Answer :- Higher in lower house price areas.
Using the R tool, show the data in the tool to answer each of the questions. Also,
show the data visualization to go along with the summary.

If you were Suzie, where would you move based on the questions above?
After you gave Suzie the answer above (to #4), she gave you some additional
information that you need to consider:
She has $100,000 to put down for the house.
If she moves to NY she will have a job earning $120,000 per year.
If she moves to FL she will have a job earning $75,000 per year.

She wants to know the following:

On average what location will she be able to pay off her house first based on
average housing prices and income she will receive?
Answer :- She moves to NY

Where should she move and why? Please show graphics and thoroughly explain your
answer here based on the new information provided above.
Answer :- She will be moving to NY, with her new

using the below code

library(devtools)
library(rpivotTable)
CrimeData<- read.csv("midterm.csv")
rpivotTable(CrimeData, rows="Location", col="Price","Location",
aggregatorName="Average",
vals="mpg", rendererName="Treemap")

You might also like