Learn R Programming

crunch (version 1.30.4)

collapseCategories: Combine Categories in place

Description

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

Usage

collapseCategories(var, from, to)

Value

the variable duly modified

Arguments

var

A categorical Crunch variable

from

A character vector of categories you want to combine.

to

A character string with the destination category.

See Also

combine()