Skip to content
Prev 174325 / 398506 Next

print of objects in R

Hi Mary,

To print without [1,] use cat() instead of print(). To get rid of the 
row names when printing a data.frame use:

print(data.frame, row.names = FALSE)

To get nice Latex tables, you can use xtable (as the other reply 
suggested). If you want to include it in Word, you can export your data 
using write.table and read it into Excel to make a table for Word.

cheers,
Paul
Mary A. Marion wrote: