makeMarginMap {crunch} | R 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 |
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)
[Package crunch version 1.31.0 Index]