data_object {globaltrends}R Documentation

data_object

Description

The table data_object contains the downloaded data for each object batch. Each line contains the search hits for each keyword in an object batch_o for a given location and date. The column batch_c indicates the control batch to which the data will be mapped. Global data takes the value world as location. Data is downloaded and automatically written to the table through the function download_object. The function start_db exports the table data_object as database connection tbl_object to the package environment gt.env. Users can access the database table through dplyr::tbl. The sample data included in data_object was simulated based on actual Google Trends data.

Example data for the table data_object is available as R object example_object.

Usage

example_object

Format

A tibble with 8,640 rows and 6 variables:

location

Column of type character showing the ISO2 code of the country or region for which the data was downloaded.

keyword

Column of type character showing the keyword for which the data was downloaded.

date

Column of type integer showing the date for which the data was downloaded. Can be transformed into date format with lubridate::as_date.

hits

Column of type double showing search volumes for the respective location-keyword-date combination.

batch_c

Column of type integer showing the number of each control batch.

batch_o

Column of type integer showing the number of each object batch.

Source

https://trends.google.com/trends/

See Also


[Package globaltrends version 0.0.14 Index]