I would like to use the gtrends
command to search keywords. The basic syntax is simple as in the following:
special.kw<-gtrends("special")
However, I would like to search for more than just "special". I would also like to include in the keyword search hits measure any searches for "speciality", "specialization", "specially". I could do the following:
special.kw<-gtrends(c("special", "speciality", "specially", "specialization"))
But this provides with 4 different searches with a different measure for each. I would like to combine the search hits for each of these using a regular expression (or some sort of wild card expressions). Also note, google trends hit measures are based on a normalized scale of 0-100, so I can't just separately search for these terms from above and add the values together -that would distort the measure. I tried messing around with stringr and grep but nothing really panned out. Any help is much appreciated. Here is a working example from scratch:
library(gtrendsR)
ch <- gconnect("xxxx@xxx.com", "xxxxxx")
special.kw<-gtrends("special")