PMassicotte / gtrendsR

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

How do I obtain gtrendsR results for same-day comparisons? #441

Closed marcyshieh closed 1 year ago

marcyshieh commented 1 year ago

I have multiple terms and would like to know how the terms compare to each other on the same day:

search_terms <- c("apple", "oranges")
gtrends(keyword = search_terms,
        geo = "US",
        time = "2022-03-01 2022-03-01",
        onlyInterest = TRUE) -> output_results

I am currently getting the error, Error: Cannot parse the supplied time format. I get results when I add a few more days. Is there a way to get around this so I can just get results for one particular day?

PMassicotte commented 1 year ago

You get the results for a single day or a range of dates. Check help files, we provide a lot of examples.