It is helpful to programmatically move from user-specified margins to real
cube margins that apply to the higher-dimensional real cube (with
user2realMargin). Or to move from the higher-dimensional real cube to user cube
(with real2userMargin).
user2realMargin(margin, dimTypes = getDimTypes(cube), cube)real2userMargin(margin, dimTypes = getDimTypes(cube), cube, dedupe = TRUE)
margin or margins in the higher-dimension real cube
the margin or margins for the user cube to be translated
dimension types from getDimTypes() (by default:
getDimTypes(cube))
the cube to translate the margin for (optional if dimTypes is
explicitly supplied)
logical, should the user dimensions in the result be
deduplicated (for real2userMargin only)