data_doi {globaltrends} | R Documentation |
data_doi
Description
The table data_doi contains the degree of internationalization (DOI)
for each object batch. Each line contains the DOI computed as inverted
gini coefficient, as inverted hhi, or inverted entropy
for each keyword in an object batch_o for a given date
and type of search score. The column batch_c indicates the
control batch that has been used as baseline for mapping. Column
locations indicates which set of locations was used to compute the
distribution of search scores. DOI is computed and automatically written to
the table with the function compute_doi
. The function start_db
exports the table data_doi as database connection tbl_doi
to
the package environment gt.env
. Users can access the database table
through dplyr::tbl
.
The sample data included in data_doi
was simulated based on actual
Google Trends data.
Usage
example_doi
Format
A tibble with 4,320 rows and 9 variables:
- keyword
Column of type
character
showing the keyword for which the data was computed.- date
Column of type
integer
showing the date for which the data was computed Can be transformed into date format withlubridate::as_date
.- type
Column of type
character
indicating the type of time series-column fromdata_score
that is used for DOI computation, takes either "score_obs", "score_sad", or "score_trd".- gini
Column of type
double
showing the DOI computed as inverted Gini coefficient of the search score distribution fromdata_score
.- hhi
Column of type
double
showing the DOI computed as inverted Herfindahl-Hirschman index of the search score distribution fromdata_score
.- entropy
Column of type
double
showing the DOI computed as inverted Entropy measure for the search score distribution fromdata_score
.- 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.- locations
Column of type
character
showing the list of locations for which the search score distribution is used.