I want to make a beautiful table from table in R. This is the table created from factor variables:
a=factor(sample(1:4, 10000, replace=TRUE))
b=factor(sample(c(0,1,NA), 10000, replace=TRUE))
table(a,b,exclude=NULL)
This is the output from table command:
b
a 0 1 <NA>
1 855 824 851
2 802 843 870
3 821 868 855
4 795 786 830
I want to know how can I add tittle to this table and format to make a beautiful table like using gt or another similar package