Represents a categorical variable for an individual. This class should be used for discrete variables taking values in a finite set, such as infection, health, or behavioral state. It should be used in preference to IntegerVariable if possible because certain operations will be faster.

## Methods

### Method new()

Create a new CategoricalVariable

#### Arguments

values

the values to filter

### Method get_size_of()

return the number of individuals with the given values

### Method queue_update()

queue an update for this variable

### Method clone()

The objects of this class are cloneable with this method.

#### Usage

CategoricalVariable\$clone(deep = FALSE)

#### Arguments

deep

Whether to make a deep clone.