Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honk Kong is not listed on data(countries) on gtrendsR 1.3.2 #69

Closed
mrdevrimci opened this issue Feb 22, 2016 · 3 comments
Closed

Honk Kong is not listed on data(countries) on gtrendsR 1.3.2 #69

mrdevrimci opened this issue Feb 22, 2016 · 3 comments

Comments

@mrdevrimci
Copy link

I try to gather Google Trends data for Hong Kong with the latest release, gtrendsR 1.3.2, but get the following error code.

gtrends("money", geo="HK")
Error: Country code not valid. Please use 'data(countries)' to retreive valid codes.

@eddelbuettel
Copy link
Collaborator

Seems valid. Maybe codes with one entry got dropped by accident?

R> any(table(countries[,"code"])==1)
[1] FALSE
R> 

@PMassicotte
Copy link
Owner

Will give a look after dinner.

@PMassicotte
Copy link
Owner

I guess countries without subcode were dropped in the previous release. This PR should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants