Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R suppressing rownames in grid table

Tags:

r

gridextra

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.

like image 725
adam.888 Avatar asked Feb 23 '13 20:02

adam.888


1 Answers

Just add rows = NULL:

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

enter image description here

like image 71
Jilber Urbina Avatar answered Oct 22 '22 02:10

Jilber Urbina