Adstocks one variable, returns a numeric vector.
1 | adstock(x, adstock.rate)
|
adstock.rate |
Rate to adstock the variable, between 0 and 1. |
data |
data.table that holds the variable to be transformed |
variable |
Character string of the variable to be transformed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.