reference_dimension | R Documentation |
Given a dimension, transform the fact table so that the attributes of the dimension indicated as a parameter, which are in the fact table, are replaced by the other attributes of the dimension.
reference_dimension(ft, dimension, attributes, conversion = TRUE)
ft |
A |
dimension |
A |
attributes |
A vector of attribute names, attributes used to reference the dimension. |
conversion |
A boolean, indicates whether the attributes need to be transformed. |
It is used to replace a set of attributes in the fact table with the generated key of the dimension.
If necessary, it is also used for the inverse operation: replace the generated key with the rest of attributes (dereference a dimension).
A fact_table
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.