To specify the population distribution of a factor variable, specify the probability for each of its factor levels. When drawn from the population, factor levels are drawn with replacement according to their probability.
Value
Sample of n values from levels, drawn in proportion to their
probabilities. By default, levels are equally likely.
See also
by_level() to assign numeric values based on factor levels, such
as to set population regression coefficients by factor level