# Sweave Example 1 using a HTML file

Eric Lecoute
avr. 02, 2004
Adapted from Friedrich Leisch example for LaTeX Sweave

In this example we embed parts of the examples from the kruskal.test from help page into a HTML document:

    > data(airquality)

    > library(ctest)

    > kruskal.test(Ozone ~ Month, data = airquality)

## Kruskal-Wallis rank sum test

- data:Ozone by Month
- Kruskal-Wallis chi-squared = 29.2666 , df = 4 , p-value = 6.901e-06

  which showns that the location parameter of the Ozone distribution varies significantly from month to month. Finally, we include a boxplot of the data: