Learn R Programming

crunch (version 1.25.0)

analyses: Get and set slide analyses

Description

Slides are composed of analyses, which are effectively CrunchCubes with some additional metadata. You can get and set a slide's Analysis Catalog with the analyses method, and access an individual analysis with analysis.

Usage

analyses(x)

analysis(x)

analysis(x) <- value

query(x) <- value

cube(x)

cubes(x)

# S4 method for CrunchSlide analyses(x)

# S4 method for CrunchSlide analysis(x)

# S4 method for CrunchSlide,formula analysis(x) <- value

# S4 method for CrunchSlide,ANY query(x) <- value

# S4 method for CrunchSlide cubes(x)

# S4 method for CrunchSlide cube(x)

# S4 method for AnalysisCatalog cubes(x)

# S4 method for Analysis,formula query(x) <- value

# S4 method for Analysis cube(x)

Arguments

x

A CrunchSlide, AnalysisCatalog, or Analysis

value

for the setter, a query

Details

You can get the CrunchCube from a slide or analysis with the cube method and from a CrunchDeck with cubes. Analyses can be changed by assigning a formula into the query function.

Examples

Run this code
# NOT RUN {
analysis(slide)
cube(slide)
cubes(deck)
query(slide) <- ~ cyl + wt
# }

Run the code above in your browser using DataLab