analyzing google trends data

Good morning everyone,
I need to analyze some google trends data with rstudio. I wrote the code, using the package gtrend but it dosen't work since an error message( Error: Country code not valid. Please use 'data(countries)' to retreive valid codes.)
I didnt find the package 'data(countries) so I installed the package ("countrycode") . But it dosen't work

Hi @ella17, data("countries") is a function you can call from the gtrendsR package - you don't need a separate package for that. According to the documentation, it should return a data frame with the necessary country codes.

Hello @valeri, thank you very much.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.