I have a countries list created manually . I also have a dataframe which countains countries and
continents and cities. How can I select only rows where df$location value contains the one of the elements in this list
also if say Bosnia is one of the elements in countries_list and the dataframe has Bosnia and Herzegovina, this also needs to be included
I have so far panda function but does not allow for partial match
data <- data[grepl(isin(countries_list),data$Location),]