Learn R Programming

crunch (version 1.25.0)

is-selected-categories: is.selected for Categories

Description

Crunch Multiple Response variables identify one or more categories as "selected". These methods allow you to get or set which categories should indicate a selection.

Usage

# S4 method for Categories
is.selected(x)

# S4 method for Categories is.selected(x) <- value

# S4 method for Category is.selected(x) <- value

Arguments

x

Categories or a single Category

value

A logical vector indicating whether the category should be selected. For a single category the value should be either TRUE or FALSE to change the selection status for a Categories object, supply a logical vector which is the same length as the number of categories.

Value

Getters return a logical vector indicating selection status. Setters return the Categories or Category object, duly modified.