View source: R/gtm_variables_create_methods.R
Convert a data frame into a list format to be used to create a lookup table
1 | gtm_create_lookup_tbl(variable_name, set_default, map_input, map_values)
|
variable_name |
The name of the new custom variable |
set_default |
Do you want to set a default value? Logical vector, but defaults to FALSE |
map_input |
The variable input that you will be mapping from |
map_values |
The key-value pairs that you will use to map from and to; note, if the data frame has more than two columns this will automatically use the first two columns |
default_value |
The default value you are setting |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.