View source: R/google_trends.R
gt_f | R Documentation |
Normalise data based on pool mean
gt_f( data, kw, date_col = "date", date_type = "weekly starting", geo = "all", append = TRUE )
data |
|
kw |
a string of the search keyword |
date_col |
a string specifying the date column name |
date_type |
The date column type as either of the following strings:'weekly starting','weekly ending','daily' |
geo |
a string specifying the country code of the search found in |
append |
a boolean specifying whether to return the original data.frame as well as the added column |
Normalise data by dividing all values in each pool by that pool's mean
data.frame
of the original data with the added google trend column
data = read_xcsv("https://raw.githubusercontent.com/paladinic/data/main/ecomm_data.csv") %>% gt_f(kw = 'covid') %>% gt_f(kw = 'bitcoin')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.