View source: R/simple_daily_series.R
| simple_daily_series | R Documentation | 
This is a more simplistic approach to generate daily data in a much broader time frame, where Google usually doesn't provide daily data at all. See more in section Method.
simple_daily_series( keyword = NA, category = NA, geo = "DE", from = "2006-01-01", verbose = TRUE )
keyword | 
 A string with a single search query. At the moment, multiple search queries are not allowed.  | 
category | 
 A string with a single search category. Note: You can either input a keyword for this function or a single category but not both!  | 
geo | 
 A geographical region to restrict the search query to.  | 
from | 
 Start date of the search query.  | 
verbose | 
 Boolean value. True, if some status messages should be displayed in the console during runtime.  | 
A tibble with a date column and a value column of a daily time series.
This function searches for multiple time periods
with a duration of 9 months with sometimes significantly
overlapping ranges of Google Trends data. The overlapping
period is then used to ensure that the time series has
a consistent scale. As of now, simple_daily_series
and daily_series have a somewhat comparable
trend to a certain degree. Important to note,
simple_daily_series won't have a value in the time
series that is above 100. But this function will also have outliers.
If you search for a smoothed (and adjusted) time series, try
the tempdisagg::td() function from the tempdisagg package.
simple_daily_series( keyword = "covid-19", geo = "DE", from = "2020-04-01", verbose = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.