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

margin-translation

Convert from user margins to real cube margins or vice versa


Description

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).

Usage

user2realMargin(margin, dimTypes = getDimTypes(cube), cube)

real2userMargin(margin, dimTypes = getDimTypes(cube), cube, dedupe = TRUE)

Arguments

margin

the margin or margins for the user cube to be translated

dimTypes

dimension types from getDimTypes() (by default: getDimTypes(cube))

cube

the cube to translate the margin for (optional if dimTypes is explicitly supplied)

dedupe

logical, should the user dimensions in the result be deduplicated (for real2userMargin only)

Value

margin or margins in the higher-dimension real cube


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.