rfactor: Draw random values from a factor variable
Description
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.