makeMarginMap: Make a map of margins

View source: R/cube-result.R

makeMarginMapR Documentation

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


## 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

## End(Not run)


Crunch-io/rcrunch documentation built on Feb. 25, 2024, 11:50 p.m.