Questions tagged [gtrendsr]
52 questions
2
votes
2 answers
trimws Function not Found - R
I am trying to use the gtrends package but I keep getting the following error:
dp <- gtrends("Donald Drumpf", res="7d")
Error in .processResults(resultsText, queryparams) :
could not find function "trimws"
Here is the full…

user191919
- 724
- 1
- 9
- 27
1
vote
0 answers
Collecting data with 'gtrendsR' for more than 5 keywords
I my research, I intend to investigate on Google Trends the search visibility of some animal groups. For this, I am using the gtrendsR package, with the following commands:
> library(gtrendsR)
> keywords = c("Butterfly", "Cockroach", "Parrot",…
1
vote
0 answers
What to put as domain in setHandleParameters of gtrendsR
I'm unclear what I should put as domain when setting up a proxy in gtrendsR as follows:
library(gtrendsR)
setHandleParameters(
user = "xxx",
password = "xxx",
proxyport= 28,
domain = "xxx",
proxyhost = "xxx
)
I've read the package's…

user9988485
- 51
- 6
1
vote
1 answer
gtrendsR Google Trends in R
A question about Google Trends package gtrendsR.
I have written my code as follows:
install.packages('gtrendsR')
library(gtrendsR)
# Define the key words
keywords = c("x", "y", "d", "e", "f")
# Set the geographic area: DE = Germany;…

Karolina
- 11
- 1
1
vote
2 answers
using map function to create a dataframe from google trends data
relatively new to r, I have a list of words I want to run through the gtrendsr function to look at the google search hits, and then create a tibble with dates as index and relevant hits for each word as columns, I'm struggling to do this using the…

Giovanni Pignatelli
- 49
- 6
1
vote
2 answers
Extracting multiple keywords (in loop) for multiple countries in google trends
I am using the gtrendsR package for extracting google trends data. I understand that this package has a limit of maximum 5 "keywords" at a time; therefore I used a loop to extract >5 "keywords" at a time.
Now i would like to repeat this excercise…

Wasiq Khurshid
- 37
- 5
1
vote
0 answers
Skipping Error in a Loop of Google Trends requests
For my Bachelor Thesis I need to pull Google Trends Data for several Brands in different countries.
As I am totally new to R a friend of mine helped me create the code for a loop, which does it automatically.
After a while the error
data must be a…

Urmel1892
- 11
- 2
1
vote
0 answers
R gtrends time all missing
I am getting missing date values when trying to download google searches using gtrendsR for all time periods.
library('gtrendsR')
g1 = gtrends(keyword = 'blues', geo = 'US', onlyInterest = T, time = "today+5-y")
head(g1$interest_over_time)
…

giac
- 4,261
- 5
- 30
- 59
1
vote
2 answers
How do I add text to a gtrendsR plot?
I am trying to make plots using the gtrendsR package. Whenever I try to use the plot() function the plot that R returns seems to ignore any text arguments I put inside it like main=" ", xlab=" " or ylab=" " and that's my trouble.
I've also tried…

Eduardo Batista
- 11
- 2
1
vote
0 answers
Inconsistent results for the exact same gtrendsR::gtrends() call that runs in a loop
I ran into some weird behavior and I'm not sure what's causing it.
The same gtrends() call, in a loop, on past data - returns different results.
Any idea what might be causing it?
Minimal example:
library(gtrendsR)
unlist(lapply(X = 1:20,…

Yanir Mor
- 581
- 3
- 15
1
vote
0 answers
GTrends Location Mistmatch to US Census Shapefiles
I am trying to link data from Google Trends with geocode data from Census. This is an example of the location data provided by Google Trends for Florida:
sub_code name
US-FL-571 Ft. Myers-Naples,…

Rebecca
- 127
- 1
- 7
1
vote
0 answers
How to pass multiple string vectors of different lengths to Mapply
The R package gtrendsr will return search data for a specific search term and date range. For example, the following arguments passed to the gtrends function will return to your console a list of detailed Google Search query data for NHL and NFL…

yanga
- 43
- 3
1
vote
1 answer
gtrends package giving "not enough search volume error"
Whenever is run this, i get a "not enough search volume error". Can someone explain me the reason for this? The term in demo[1] is "Neoforma.com Inc"
library(gtrendsR)
require("XLConnect")
library(readxl)
# read_excel reads both xls and xlsx…

caspersmart
- 11
- 2
1
vote
1 answer
Error with date using gtrendsR
Why the code below works just fine:
library(gtrendsR)
ch <- gconnect("usr@gmail.com", "psw")
query1 <- gtrends(query = c("Ludwig von Mises", "John Maynard Keynes", "Karl Marx"),
geo = c("BR"),
start_date =…

Rafael Neves
- 467
- 3
- 10
0
votes
0 answers
trendecon to download Google Trends data: Problem with `mutate()` column `trend_data`
I'm using the trendecon package to download daily data from Google Trends. This package uses gtrendsr under the hood, but creates many requests to create daily data for long periods of time (by default, Google doesn't give you daily data unless your…

Jordan
- 1
- 1