collapseCategories: Combine Categories in place

View source: R/combine-categories.R

collapseCategoriesR 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()


Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.