I have a table which I generated from table()
function and I further use xtable to print it as follows:
FF NF NN Sum
FF 8 0 0 8
NF 7 8 0 15
NN 3 1 4 8
I want to add an additional column name and a rowname in the following format.
Time2
Time1 FF NF NN Sum
FF 8 0 0 8
NF 7 8 0 15
NN 3 1 4 8
I looked into xtable but couldn't find anything. colnames() changes the names of the existing columns, rownames() does the same to the rownames.