proc_keyword_init: Download daily, weekly and monthly Google Trends data for a...

View source: R/proc_keyword_init.R

proc_keyword_initR Documentation

Download daily, weekly and monthly Google Trends data for a keyword.

Description

Downloads daily, weekly and monthly Google Trends data for a keyword and writes the data to csv files.

Usage

proc_keyword_init(
  keyword = "Insolvenz",
  geo = "CH",
  from = "2006-01-01",
  indicator_raw = FALSE
)

Arguments

keyword

A single keyword to query Google Trends.

geo

A character vector denoting the geographic region. Default is "CH".

from

Start of timeframe in YYYY-mm-dd form. Should not be changed from the the default.

indicator_raw

store individual downloads. If FALSE, only the averages are stored.

Details

By default, the data is stored in folders data and raw. Each folder contains a subdirectory of each country.

See Also

ts_gtrends_windows

Examples

## Not run: 
# run once
proc_keyword_init(keyword = "Insolvenz", "AT")
# run every day
proc_keyword_latest(keyword = "Insolvenz", "AT")

## End(Not run)


trendecon/trendecon documentation built on Oct. 9, 2024, 5:48 a.m.