View source: R/star_database.R
star_database | R Documentation |
star_database
S3 classA star_database
object is created from a star_schema
object and a flat
table that contains the data from which database instances are derived.
star_database(schema, instances, unknown_value = NULL)
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. |
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.
A star_database
object.
star_schema
, flat_table
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()
db <- star_database(mrs_cause_schema, ft_num)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.