I have a named list and want to search if a character string appears in it.
data_list <- list()
data_list$item1 <- c("hello_world"="hi", "snooker cue"="cue")
data_list$item2 <- c("property"="house")
When I see if "cue" is in the list by doing "cue"%in%data_list the result is FALSE but it is in there under data_list$item1. How can I search to see if strings appear in the list and return TRUE if they do?