I want to mimic the behavior of Stata\'s tabulate , generate() command in R. It is illustrated below; the command\'s functionality is twofold. First, in my exam
tabulate , generate()