PMassicotte / gtrendsR

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

Better manage situations where some data is missing #419

Closed PMassicotte closed 2 years ago

PMassicotte commented 2 years ago

Sometimes, RISING or TOP trends are not returned by Google Trends. Make sure that the query will not crash if this situation appends. Also, RISING and TOP trends extraction was done in two separate files. The duplicated code has been migrated in a single function (https://github.com/PMassicotte/gtrendsR/blob/fix-no-rising-trends/R/top_rising_search.R).