Skip to contents

summarise factor levels with relative frequency below a threshold

Usage

summarise_marginal_factor_levels(x, perc_threshold, marginal_name)

Arguments

x

factor variable

perc_threshold

percentage threshold under which levels will be summarised

marginal_name

for new summary factor level