Learn R Programming

crunch (version 1.3.2)

var-categories: Get and set Categories on Variables

Description

Get and set Categories on Variables

Usage

## S3 method for class 'CrunchVariable':
categories(x)

## S3 method for class 'CategoricalVariable': categories(x)

## S3 method for class 'CategoricalArrayVariable': categories(x)

## S3 method for class 'CategoricalVariable,Categories': categories(x) <- value

## S3 method for class 'CategoricalArrayVariable,Categories': categories(x) <- value

## S3 method for class 'CategoricalVariable,numeric': categories(x) <- value

## S3 method for class 'CategoricalVariable,character': categories(x) <- value

## S3 method for class 'CategoricalVariable,ANY': categories(x) <- value

## S3 method for class 'CategoricalArrayVariable,numeric': categories(x) <- value

## S3 method for class 'CategoricalArrayVariable,character': categories(x) <- value

## S3 method for class 'CategoricalArrayVariable,ANY': categories(x) <- value

## S3 method for class 'CrunchVariable,ANY': categories(x) <- value

Arguments

x
a Variable
value
for the setters, an object of class Categories to set.

Value

  • Getters return Categories; setters return x duly modified.