skipMissingCategories: Handle missing categories in CrunchCube

View source: R/cube-subset.R

skipMissingCategoriesR Documentation

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-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.