noTransforms: Remove transformations from a CrunchCube

View source: R/cube-transforms.R

noTransformsR Documentation

Remove transformations from a CrunchCube

Description

Remove transformations from a CrunchCube

Usage

noTransforms(cube)

Arguments

cube

a CrunchCube

Value

the CrunchCube with no transformations

Removing transforms

noTransforms() is useful if you don't want to see or use any transformations like Subtotals and Headings. This action only applies to the CrunchCube object in R: it doesn't actually change the variables on Crunch servers or the query that generated the CrunchCube.

Examples

## Not run: 
# A CrunchCube with a heading and subtotals
crtabs(~opinion, ds)
#               All opinions
#             Strongly Agree 23
#             Somewhat Agree 24
#                      Agree 47
# Neither Agree nor Disagree 18
#          Somewhat Disagree 16
#          Strongly Disagree 19
#                   Disagree 35

noTransforms(crtabs(~opinion, ds))
#             Strongly Agree             Somewhat Agree Neither Agree nor Disagree
#                         23                         24                         18
#          Somewhat Disagree          Strongly Disagree
#                         16                         19

## End(Not run)


crunch documentation built on Aug. 31, 2023, 1:07 a.m.