kill.the.small: Recode very small levels into Missing values

Description Usage Arguments Value

Description

Kill.the.small recodes all levels with proportions below a certain threshold into "Missing". This is useful for a very crude first look at a lot of variables.

Usage

1
kill.the.small(variables, threshold = 0.05, new.level = "Missing")

Arguments

variables

is a data.frame of factors

threshold

is the proportion below which a level is recoded

new.level

is the new label for the recoded levels

Value

a data.frame


antongrau/soc.report documentation built on May 10, 2019, 12:25 p.m.