daily_series: Generate a consistent daily time series

View source: R/daily_series.R

daily_seriesR Documentation

Generate a consistent daily time series

Description

Since Google only provides data for a short time period of less than nine months, one needs to apply tricks to get a longer time series with daily data. daily_series estimates via the Chow-Lin method a consistent long daily time series based on monthly data.

Usage

daily_series(keyword = c("arbeitslos"), geo = "DE", from = "2006-01-01")

Arguments

keyword

A character vector consisting of the search query. As of now, you can only enter one single keyword. Categories are not possible.

geo

A geographical region to restrict the search query to.

from

Start date of the search query.

Value

Tibble with daily relative search volumes.

Warning

This function takes a long time and generates a lot of queries at Google. An IP ban is therefore quite likely.

Examples

## Not run: 
daily_series(keyword = "Ikea", geo = "NL", from = "2021-01-01")

## End(Not run)

johannes97s/ifwtrends documentation built on Oct. 9, 2022, 7:01 p.m.