Title: | A Tidy Wrapper Around 'gtrendsR' |
Version: | 0.1.1 |
Date: | 2019-05-19 |
Maintainer: | Josiah Parry <josiah.parry@gmail.com> |
Description: | Access Google Trends information. This package provides a tidy wrapper to the 'gtrendsR' package. Use four spaces when indenting paragraphs within the Description. |
License: | GPL-2 |
Encoding: | UTF-8 |
URL: | https://github.com/josiahparry/trendyy |
BugReports: | https://github.com/josiahparry/trendyy/issues |
Depends: | R (≥ 3.2.0) |
Imports: | gtrendsR, magrittr, dplyr, purrr, crayon, stringr, tibble |
RoxygenNote: | 6.1.1 |
NeedsCompilation: | no |
Packaged: | 2019-05-19 21:11:33 UTC; josiah |
Author: | Josiah Parry [aut, cre] |
Repository: | CRAN |
Date/Publication: | 2019-05-20 14:10:04 UTC |
Retrieve interest over time
Description
Extract a tibble of interest over time
Usage
get_interest(trendy)
Arguments
trendy |
An object of class trendy created via |
Examples
## Not run:
ob <- trendy("obama")
get_interest(ob)
## End(Not run)
Retrieve interest by city
Description
Extract a tibble of interest by city from trendy object
Usage
get_interest_city(trendy)
Arguments
trendy |
An object of class trendy created via |
Examples
## Not run:
ob <- trendy("obama")
get_interest_city(ob)
## End(Not run)
Retrieve interest by country
Description
Extract a tibble of interest by country from trendy object
Usage
get_interest_country(trendy)
Arguments
trendy |
An object of class trendy created via |
Examples
## Not run:
ob <- trendy("obama")
get_interest_country(ob)
## End(Not run)
Retrieve interest by DMA
Description
Extract a tibble of interest by DMA from trendy object
Usage
get_interest_dma(trendy)
Arguments
trendy |
An object of class trendy created via |
Examples
## Not run:
ob <- trendy("obama")
get_interest_dma(ob)
## End(Not run)
Retrieve interest by region
Description
Extract a tibble of interest by region from trendy object
Usage
get_interest_region(trendy)
Arguments
trendy |
An object of class trendy created via |
Examples
## Not run:
ob <- trendy("obama")
get_interest_region(ob)
## End(Not run)
Retrieve related queries
Description
Extract tibble of related queries from trendy object
Usage
get_related_queries(trendy)
Arguments
trendy |
An object of class trendy created via |
Value
A tibble containing related search terms
Examples
## Not run:
ob <- trendy("obama")
get_related_queries(ob)
## End(Not run)
Retrieve related topics
Description
Extract a tibble of related topics from trendy object
Usage
get_related_topics(trendy)
Arguments
trendy |
An object of class trendy created via |
Examples
## Not run:
ob <- trendy("obama")
get_related_topics(ob)
## End(Not run)
Google Trends Search
Description
Search Google Trends to retrieve relative hits and popularity. This supports comparison of up to 5 search terms. Anything more than that will be searched individually.
Usage
trendy(search_terms, from = NA, to = NA, ...)
## S3 method for class 'trendy'
print(x, ...)
Arguments
search_terms |
A character vector containing the search terms of interest |
from |
The beginning date of the query |
to |
The beginning date of the query |
... |
arguments passed to |
x |
trendy object |
Value
An object of class 'trendy'
Examples
## Not run:
trendy("RStudio 1.2")
## End(Not run)