Could someone help me figure out how to solve this problem? I am new to R Studio and aren't really sure how to work around it.
Select out all the people who have purchased both books (books) and movies (movies). What is the mean discount (discounts) received by these people?
I know that I need to use subset but not really sure how to use it. I tried uploading the data set that is related to the problem but I can't since I am a new user. But I can try to explain it. books, movies and discounts are columns in the data set. Those that purchased are classified as true and those that didn't are classified as false. Let me know if this helps!