I have a column with string content
temp <- c(NA, NA, "grocery pantry all offers", NA, "grocery offers today low price",
"grocery offers today low price", "tide soap", "tide soap bar",
"tide detergent powders 2kg", NA, "tide", "tide detergent powders 2kg",
"liquid detergent tide brand")
My intention is to create a bigram with words which are next to Tide. For this I would need to filter out words which are next to tide. Either left or right side. For ex in above output would be
tide soap
tide soap
tide detergent
tide detergent
detergent tide
tide brand
Any help ?
kwic()
. Quanteda is very useful if you dig text. – Coomer