
Last chance! 50% off unlimited learning
Sale ends in
Normalise data based on pool mean
gt_f(
data,
kw,
date_col = "date",
date_type = "weekly starting",
geo = "all",
append = TRUE
)
data.frame
of the original data with the added google trend column
data.frame
containing data for analysis
a string of the search keyword
a string specifying the date column name
The date column type as either of the following strings:'weekly starting','weekly ending','daily'
a string specifying the country code of the search found in countrycode::codelist
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 = read_xcsv("https://raw.githubusercontent.com/paladinic/data/main/ecomm_data.csv") %>%
gt_f(kw = 'covid') %>%
gt_f(kw = 'bitcoin')
Run the code above in your browser using DataLab