PMassicotte / gtrendsR

R functions to perform and display Google Trends queries
353 stars 112 forks source link

Different results for two overlapping time periods #429

Closed RamonCornejo closed 2 years ago

RamonCornejo commented 2 years ago

Dear all,

I've been searching a word in two overlapping time periods to check results but I have different values to the same date (2022-08-26), wich is the problem?

t="2022-05-04 2022-08-26" A = gtrends(keyword="apruebo -rechazo",geo=c,time=t)$interest_over_time$hits View(A)

t2="2022-08-20 2022-08-31" A2 = gtrends(keyword="apruebo -rechazo",geo=c,time=t2)$interest_over_time$hits

eddelbuettel commented 2 years ago

There have been a few issues raised here that had this discussed in detail -- see under the issue tickets here (open and closed).

PMassicotte commented 2 years ago

The hit results are relative to the time period of the query. Hence, if you make 2 queries with 2 time ranges, they will be different.