If col2 is not supplied, will make a frequency table for 1 column.
a data frame to pivot
unquoted col 1
unquoted col 2
logical; show row and col totals
string; denominator to use when calculating percentages
logical; show results of chi squared test in footnote
string to choose a predefined theme
string to name table. If not given, automatically defaults to table name.
param for single col pivot table. if True arranges table by decreasing n size
a flextable