Question: # Q4 # Use the mean() function to compute the average ###### lot frontage of the homes in this dataset. mean(train$Lot.Frontage) # Q5 # Use
# Q4 # Use the mean() function to compute the average ###### lot frontage of the homes in this dataset. mean(train$Lot.Frontage)
# Q5 # Use the mean() function to compute the average ###### lot frontage for a home with at least 1 fireplace. mean(train$LotFrontage[train$Fireplaces > 0])

Why
mean(train$Lot.Frontage)
for Q4
mean(train$LotFrontage[train$Fireplaces > 0])
for Q5
wrong?
What is correct anwser?
Q4 - Use the mean () function to compute the average lot frontage of the homes in this dataset. Q5 - Use the mean () function to compute the average lot frontage for a home with at least 1 fireplace
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
