replacing values of a dataframe column using values of a list and list name in R
问题 I would like to replace Values inside of a column with a list name conditional upon the values being inside the list values: df <- data.frame(Activity = c("Checking emails", "Playing games", "Reading", "Watching TV", "Watching YouTube", "Watching TV", "Relaxing", "Getting ready", "Working/ studying", "Relaxing")) mylist <-list(Tech_activity = c("Browsing social media", "Checking emails", "Video calling", "On my computer/ PC", "Watching YouTube", "Browsing the internet", "On my phone",