View source: R/gtpreparation.R
add_id_column | R Documentation |
This function checks if the dataframe from Google contains a column "id". If there is no said column, this function adds one with the fitting ID from Google.
add_id_column(data, keyword, category)
data |
A tibble or dataframe containing a Google Trends time series. |
keyword |
The keyword or keywords that have been searched in the prior function. |
category |
The category ID from Google Trends. |
A tibble with an added ID column, if there was no beforehand. Otherwise, the original data will be returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.