GoogleTrends analysis for Psilocybin (R-code)
1 2 3 4 5 6 |
library(gtrendsR) library(reshape2) google.trends = gtrends(c("psilocybin"), gprop = "web", time = "all")[[1]] google.trends = dcast(google.trends, date ~ keyword + geo, value.var = "hits") rownames(google.trends) = google.trends$date google.trends$date = NULL |
Associated R package manual: https://cran.r-project.org/web/packages/gtrendsR/gtrendsR.pdf Cf. Using GoogleTrends analysis to quantify the virality of memes, i.e., the spreading of information (in analogiam to spreading activation in a neuronal network …