Question: Suppose we have a dataset called house_prices which lists the selling prices in various suburbs (given in 1000's of dollars), in a column called PRICE.
Suppose we have a dataset called "house_prices" which lists the selling prices in various suburbs (given in 1000's of dollars), in a column called PRICE. The following is a command which adds a new column called CAPPED_PRICE to the dataset:
house_prices$CAPPED_PRICE <- with(house_prices, ifelse(PRICE > 600, 600, PRICE))
Describe what what you think this command does.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
