collapseCategories {crunch}R Documentation

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)

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

combine()


[Package crunch version 1.30.1 Index]