I am trying to extract a subset from a huge dataset. The following code is working for extracting a single datapoint from the dataset.
write.csv(subset(project, grepl("^UN1705.* ", Trial_group) ), file="kiki.csv")
How can I tell R that I want to extract multiple datapoints? I tried commas, semicolons etc, but nothing worked:
write.csv(subset(project, grepl("^UN1705, UN1706.* ", Trial_group) ), file="kiki.csv")
Or you can combine these queries in one regex