Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.