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

skipMissingCategories

Handle missing categories in CrunchCube


Description

Missing categories are not displayed when cube@useNA is set to "no" or ifANy. The way we handle these cases is to change the useNA setting to always, subset the cube, and then change it back to the original value. For this to work we need to translate the indices that the user supplied to properly skip over hidden categories.

Usage

skipMissingCategories(cube, index, drop)

Arguments

cube

a CrunchCube

index

the user supplied index

drop

whether dimensions should be dropped

Value

A list translated indexes


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.