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

showTransforms

Show transformations on a Crunch object


Description

showTransforms([variable]) shows a summary of a categorical variable that has transforms with the transforms calculated and applied. This is useful to see what kind transforms exist before including the variable in a CrunchCube.

Usage

showTransforms(x)

## S4 method for signature 'CategoricalVariable'
showTransforms(x)

## S4 method for signature 'CrunchCube'
showTransforms(x)

Arguments

x

a Categorical variable or CrunchCube

Details

showTransforms([CrunchCube]) shows the CrunchCube with all transforms calculated and applied. This is the default display method for cubes, so should not be frequently needed.

In both cases, an array is returned that includes the values of both the underlying data (either category counts or CrunchCube cell values) as well as the transformations applied.

Value

summary of the variable, or the full CrunchCube with transforms applied

Examples

## Not run: 
showTransforms(ds$variable)

## End(Not run)

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.