Skip to content
Prev 205260 / 398506 Next

R2HTML Report number format, or Better Way?

On 01/04/2010 03:36 AM, L.A. wrote:
Hi L.A.,
Try this:

# la1.dat is a text file with your sample data
srtype<-read.table("la1.dat",header=TRUE)
# I don't know where the rownames came from
# so I added them
rownames(srtype)<-
  c("RES I","RES V","OTHER","COM I","COM")
library(prettyR)
delim.table(srtype,"srtype.html",delim="<td>",
  tabegin="<table border=0>",bor="<tr><td>",
  tablend="</table>",header="<html><body>",
  trailer="</body></html>")

Now have a look at the file "srtype.html".

Jim