Home work of dplyr (rstudio)

# Use package dplyr to explore WestRoxbury real estate dataset 

d = read.csv(“WestRoxbury.csv”)

View(d)

# Questions

# 1) Filter the data to show only houses whose total value

# is greater than 350 (thousand), less than 20 years of age, 

# and tax is less than 5000. HINT: use Mutate to calculate

# age of the house as of 2020.

# 2) Sort the dataset by (age, total value), then show

# only age, total value, lot sqft, and rooms. Assign entire

# output to a variable named sortedD. Now using standard base R, show only

# first 10 rows of sortedD.

# 3) A potential buyer is looking for a house which will have at least 8 rooms,

# in exactly one floor, have a fireplace, and built in between 1970 and 1990.

# Arrange these houses sorted by total value. 

# Finally, assign the result to a new variable named custList.

# View custList.

# 4) Summarize the dataset by first grouping on age, then calculate 

# count of each group, mean, min, and max of total value. Then,

# order the resulting output (in descending order) by count. Finally, assign the result 

# to a new variable named groupedD.

# View groupedD.

  

grammarlytutors
Calculate your essay price
(550 words)

Approximate price: $22

How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!