Hi all,
I'm trying to do corpus analysis in R (using polmineR, if anyone knows it) and having trouble arranging my syntax for a query. I want to basically ask R to find all items in the corpus containing at least one out of 3 groups of words, and at least one word from each of the 3 groups. So here's what I want:
query <- [one group of words] & [another group of words] & [third group of words]
Here's a brief version of what I've been trying:
query_mig <- '[word = ".*[aA]usländer.*" | word = ".*[mM]igration.*"]
& [word = "Deutschland" | word = "Bundesrepublik" | word = "BRD"]
& [word = ".*[iI]ntegration.*" | word = ".*[aA]bschieb.*"]'
But that can't be right because when I add words, the number of articles included in the result doesn't change. Can anyone advise me as to what I might be doing wrong? I've been doing a lot of googling and can't find the answer.
Thank you so much!
Best,
Emily