Description Usage Arguments Value References Examples
A function to grab Google Trend data using the GTrendsR package https://github.com/dvanclev/GTrendsR.
1 | gtrend_scraper(username, password, phrases, geo = "US")
|
username |
Your Gmail/Google name (e.g., |
password |
Your Gmail/Google password. |
phrases |
A character vector of phrases to look up. |
geo |
A locations to search within. |
Returns a list of lists (one list for each search term):
query |
A character... |
meta |
A character... |
trend |
A data.frame... |
regions |
A list... |
topmetros |
A list... |
cities |
A list... |
searches |
A list... |
rising |
A list... |
headers |
A character... |
https://github.com/dvanclev/GTrendsR http://www.google.com/trends
1 2 3 4 5 6 7 | ## Not run:
(out <- gtrend_scraper("tyler.rinker@gmail.com", "password", "dog bite"))
library(GTrendsR)
as.zoo(out[[1]])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.