Displaying 1 result from an estimated 1 matches for "gconnect".
Did you mean:
connect
2016 Apr 27
0
using foreach function with gtrendsR
I have this code which is working
library("checkpoint")
library("gtrendsR")
library("doParallel")
cl<-makeCluster(4)
registerDoParallel(cl)
gconnect(usr = "email at gmail.com", psw = "password", verbose = FALSE)
names <- c("apple","shit", "android", "rocks")
formula <- function(x){
x0 <- gtrends(x, res = "7d")
x1 <- x0[3]
x2 <- as.data.frame(x1)
x3 <- x2[1,...