This function allows you to combine the categories of a variable without making a copy of the variable.

collapseCategories(var, from, to)

Arguments

var

A categorical Crunch variable

from

A character vector of categories you want to combine.

to

A character string with the destination category.

Value

the variable duly modified

See also