Learn R Programming

crunch (version 1.30.4)

getDimTypes: Get dimension type

Description

This function returns the specific type of each cube dimension. This is useful when cubes contain array variables because it identifies the dimensions of the cube which refer to the different parts of array variable:

  • ca_items: Categorical array items

  • ca_categories: The categories of the categorical array

  • mr_items: Multiple response options or items

  • mr_selections: The selection status for a multiple response variable

  • numarray_items: Numeric array items

Usage

getDimTypes(x)

Value

a character vector of dimension types, similar to types(), except that the array variable types are more specific.

Arguments

x

a CrunchCube or CubeDims object