Skip to content
Prev 74766 / 398503 Next

how to print a data.frame without row.names

Dear All,
is there a simple way to print a data.frame without its row.names?

example:
datum <- as.Date(c("2004-01-01", "2004-01-06", "2004-04-12"))
content <- c('Neujahr', 'Hl 3 K.', 'Ostern')
df1 <- data.frame(datum, content)
print(df1)

       datum content
1 2004-01-01 Neujahr
2 2004-01-06 Hl 3 K.
3 2004-04-12  Ostern

Can I get this "table" without 1, 2, 3 ?

Thanks in advance

Heinz Tuechler