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)# S3 method for fact_table
reference_dimension(ft, dimension, attributes, conversion = TRUE)
A fact_table
object.
A dimension_table
object.
A vector of attribute names, attributes used to reference the dimension.
A boolean, indicates whether the attributes need to be transformed.
A fact_table
object.
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).