Skip to content

matrix output

3 messages · phoebe kong, Duncan Murdoch, Jim Lemon

#
On 17/02/2009 5:31 PM, phoebe kong wrote:
If you increase the output width, e.g.

options(width=10000)

won't wrap (but it'll probably be too wide to be useful).  You can also 
reduced the number of decimal places, e.g.

SYrounded <- round(SY, 3)
The main way to produce nice text in a PDF document through R is to use 
Sweave and LaTeX.  Too much explanation needed for a simple example here.

Duncan Murdoch
#
phoebe kong wrote:
Hi phoebe,
If you don't need PDF, you can get an HTML display of this sort of 
matrix using the delim.table function in the prettyR package:

delim.table(SY,file="SY.html",delim="<td>",tabegin="<table border=1>",
  bor="<tr><td>",tablend="</table>")

You can embed a table like this into an HTML formatted output file of an 
R session using the htmlize function and calling delim.table to format 
the table.

Jim