Re: [R] print of objects in R

2009-03-20 Thread Paul Hiemstra
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 da

Re: [R] print of objects in R

2009-03-19 Thread andrew
xtable in the library xtable does a good job if you are using latex to write up your results. For example: > xtable(matrix(rnorm(20),5,5)) % latex table generated in R 2.8.0 by xtable 1.5-4 package % Fri Mar 20 13:48:53 2009 \begin{table}[ht] \begin{center} \begin{tabular}{rr} \hline & 1 &