Learn R Programming

crunch (version 1.30.4)

var-categories: Get and set Categories on Variables

Description

Get and set Categories on Variables

Usage

categories(x)

categories(x) <- value

# S4 method for VariableTuple categories(x)

# S4 method for CrunchVariable categories(x)

# S4 method for CategoricalVariable categories(x)

# S4 method for CategoricalArrayVariable categories(x)

# S4 method for VariableEntity categories(x)

# S4 method for CategoricalVariable,Categories categories(x) <- value

# S4 method for CategoricalArrayVariable,Categories categories(x) <- value

# S4 method for CategoricalVariable,numeric categories(x) <- value

# S4 method for CategoricalVariable,character categories(x) <- value

# S4 method for CategoricalVariable,ANY categories(x) <- value

# S4 method for CategoricalArrayVariable,numeric categories(x) <- value

# S4 method for CategoricalArrayVariable,character categories(x) <- value

# S4 method for CategoricalArrayVariable,ANY categories(x) <- value

# S4 method for CrunchVariable,ANY categories(x) <- value

Value

Getters return Categories; setters return x duly modified.

Arguments

x

a Variable

value

for the setters, an object of class Categories to set.