adam.888
adam.888

Reputation: 7846

R suppressing rownames in grid table

I can produce a table with gridExtra:

eg:

    library(gridExtra)
    grid.table(head(iris))

But this produces a rownames column 1:6. Is there a way to be able to suppress the rownames column so that it does not appear in the table?

Thank you for your help.

Upvotes: 17

Views: 8878

Answers (1)

Jilber Urbina
Jilber Urbina

Reputation: 61154

Just add rows = NULL:

grid.table(head(iris), rows = NULL)

enter image description here

Upvotes: 29

Related Questions