star_database {rolap} | R Documentation |
star_database
S3 class
Description
A star_database
object is created from a star_schema
object and a flat
table that contains the data from which database instances are derived.
Usage
star_database(schema, instances, unknown_value = NULL)
Arguments
schema |
A |
instances |
A flat table to define the database instances according to the schema. |
unknown_value |
A string, value used to replace NA values in dimensions. |
Details
Measures and measures of the star_schema
must correspond to the names of
the columns of the flat table.
Since NA values cause problems when doing Join operations between tables, you can indicate the value that will be used to replace them before doing these operations. If none is indicated, a default value is taken.
Value
A star_database
object.
See Also
Other star database definition functions:
get_dimension_names()
,
get_dimension_table()
,
get_fact_names()
,
get_role_playing_dimension_names()
,
get_table_names()
,
group_dimension_instances()
,
role_playing_dimension()
Examples
db <- star_database(mrs_cause_schema, ft_num)