rownames dissapear when changing format

Hi,
I made a data table from a matrix I created

df_table <- data.table(matrix_df)

I made rownames as following:

rownames(df_table) <- c('BG', '1', '2', '3', '4', '5', '6', 'total')

I plotted the table using

grid.table(df_table, theme = t1)

This worked just fine, but now my problem is that when I want to use a separator in between the thousands, my rownames dissapear, I tried the following:

grid.table(format(df_table, big.mark = "."), theme = t1)

Now I get a table with the thousands separator but without the rownames.

Could anyone help me to fix this problem?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.