Suppose we have a dataset called house_prices which lists the selling prices in various suburbs (given in
Fantastic news! We've Found the answer you've been seeking!
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. 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.
Related Book For
Posted Date: