Learn R Programming

codeCollection (version 0.1.3)

comb.levels: Groups rare levels of factor

Description

Groups rare levels of factor

Usage

comb.levels(x, N.max = 10, lang = "fi")

Value

factor containing code value and text

Arguments

x

factor or other categorical variable

N.max

maximum number of levels

lang

language ("fi" or "en")