Skip to contents

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 star_schema object.

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.

Value

A star_database object.

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.

Examples


db <- star_database(mrs_cause_schema, ft_num)