[R] R2HTML Report number format, or Better Way?
L.A.
romsa at millect.com
Mon Jan 4 00:49:29 CET 2010
Thanks for the replys.
I've played with both suggestions, but must not understand as I could not
get
them to work. In the first, do I have to save my results as a *.dat file?
Where do I find the HTML file?
For the second, As a beginner, is this what you mean by "supply the data
as code"?
The actual data is 17000 rows and 31 columns.
L.A.
Par<-by(Dataset[ , "ACCOUNTNO"], Dataset["TYPE"], length)
Sal<-by(Dataset[ , "ratio"], Dataset["TYPE"], length)
PRD<-with(Dataset, by(Dataset[ , "prdb"], TYPE, max))
COD<-with(Dataset, by(Dataset[ , "coda"], TYPE, max))
LowerCI<-with(Dataset, by(Dataset[ , "LLCI"], TYPE, max))
UpperCI<-with(Dataset, by(Dataset[ , "UUCI"], TYPE, max))
srtype<-cbind(Parcels,Sales,Median,COD,PRD,LowerCI,UpperCI)
srtype
Par Sal Median COD PRD LowerCI UpperCI
RES I 9683 578 0.9533 29.69 1.191 0.9382 0.9582
RES V 4003 155 0.9763 16.51 1.091 0.9499 0.9943
OTHER 1542 10 0.8367 82.35 1.253 0.4759 2.2293
COM I 1711 26 0.9521 26.01 1.102 0.7811 0.9789
COM 9 1 0.9313 0.00 1.000 0.0000 0.0000
library(R2HTML)
HTMLStart(outdir="c:/R/reports", file="myreport1",
extension="html", echo=FALSE, HTMLframe=TRUE)
HTML(srtype)
HTMLhr()
HTMLStop()
Par Sal Median COD PRD LowerCI UpperCI
RES I 9683.00 578.00 0.95 29.69 1.19 0.94 0.96
RES V 4003.00 155.00 0.98 16.51 1.09 0.95 0.99
OTHER 1542.00 10.00 0.84 82.35 1.25 0.48 2.23
COM I 1711.00 26.00 0.95 26.01 1.10 0.78 0.98
COM V 9.00 1.00 0.93 0.00 1.00 0.00 0.00
--
View this message in context: http://n4.nabble.com/R2HTML-Report-number-format-or-Better-Way-tp997787p997974.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list