How to layout the output nicely into webpage?

Hi all,

I have data which is about 60000 x 1 divided into trunks and in the
following for loop I am doing data analysis trunk by trunk.

The goal is to layout the data and analysis summaries side-by-side in a
clear manner.

I guess the best way to present these is to put them on a HTML webpage
(i.e. output results into HTML format).

More specifically, I am looking for a nice formatter such that:

1. Within each trunk, the left side will be the data in that trunk itself;
the right side will be the analysis summaries(Please see below for an
example):

2. Trunk by trunk, the outputs are layed out vertically, i.e. the data
(left) and summary (right) for trunk 2 are placed below those of trunk 1,
etc.

Here is the skeleton of the code:

How to do it?

Thanks a lot!

----------------------

n=length(x)

for (i in seq(40, n, by=40))
{

    xtrunk=x[(i-40+1):i]
    t=1:40
    bb=summary(lm(xtrunk~t))

    #would like to output xtrunk on the left and bb on the right
    #and convert results into HTML format; the final results will be a big
HTML file


}

------------------


summary(lm(xtrunk~t))

Call:
lm(formula = xtrunk ~ t)

Residuals:
    Min      1Q  Median      3Q     Max
-1.9866 -0.8931  0.1681  0.7087  3.0392

Coefficients:
             Estimate Std. Error t value Pr(>|t|)
(Intercept)  0.154144   0.344039   0.448    0.657
t           -0.001237   0.014623  -0.085    0.933

Residual standard error: 1.068 on 38 degrees of freedom
Multiple R-squared: 0.0001884, Adjusted R-squared: -0.02612
F-statistic: 0.007159 on 1 and 38 DF,  p-value: 0.933

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to