crunch (version 1.27.7)

makeMarginMap: Make a map of margins

Description

Useful when converting to and from user and real cube dimension indexes.

Usage

makeMarginMap(dimTypes)

Arguments

dimTypes

dimension types from getDimTypes()

Value

a vector of margins, the length of which is the length of the real cube, the values are the user cube dimensions

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
makeMarginMap(getDimTypes(cat_by_cat_cube))
# 1 2

makeMarginMap(getDimTypes(MR_by_cat_cube))
# 1 1 2

makeMarginMap(getDimTypes(cat_by_MR_cube))
# 1 2 2

makeMarginMap(getDimTypes(MR_by_MR_cube))
# 1 1 2 2
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab