Question: What does the following line of code do: which ( home _ data$RATING = = 5 ) It displays the row indices for observations that

What does the following line of code do: which(home_data$RATING ==5)
It displays the row indices for observations that have RATING equal to 5.
It displays the entire rows of observations where RATING equals 5.
It defines a new column, RATING, in home_data dataframe that have a value of 5.
It counts the number of observations that have RATING equal to 5.
What does the following line of code do: which (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!