Learn R Programming

crunch (version 1.3.2)

Categories-class: Categories in CategoricalVariables

Description

CategoricalVariables, as well as the array types composed from Categoricals, contain Categories. Categories are a subclass of list that contains only Category objects. Category objects themselves subclass list and contain the following fields: "name", "id", "numeric_value", "missing", and optionally "selected".

Usage

## S3 method for class 'Categories,ANY':
[(x, i, j, ..., drop = TRUE)

## S3 method for class 'Categories,ANY,ANY,ANY': [(x, i, j, ...) <- value

## S3 method for class 'Categories': names(x)

## S3 method for class 'Categories': values(x)

## S3 method for class 'Categories': ids(x)

## S3 method for class 'list': ids(x)

## S3 method for class 'Categories': names(x) <- value

## S3 method for class 'Categories': values(x) <- value

## S3 method for class 'Categories': ids(x) <- value

Arguments

x
For the attribute getters and setters, an object of class Category or Categories
i
For the [ methods, just as with list extract methods
j
Invalid argument to [, but in the generic's signature
...
additional arguments to [, ignored
drop
Invalid argument to [, but in the generic's signature
value
For [<-, the replacement Category to insert