[R] Sweave Xtable row names

Gabor Grothendieck ggrothendieck at gmail.com
Mon Oct 22 00:22:06 CEST 2007


See ?print.xtable, e.g.

print(x, include.rownames = FALSE)

On 10/21/07, Klaus Friis Østergaard <farremosen at gmail.com> wrote:
> Hi,
>
> How do one avoid rownames when xtable is used to make tables for Latex.
>
> <<>>=
> MSe <- 0.12
> MSa <- 0.15
> MSap <- 0.13
> MSp <- 0.14
>
> k <- 5
> n <- 4
> r <- 30
>
>
> EV <- 5.15*sqrt(MSe)
>
> AV <- 5.15*sqrt((MSa - MSap)/(n *k))
>
> Iap <- 5.15 * sqrt((MSap-MSe)/r)
>
> GRR <- sqrt((EV)^2 + (AV)^2 + (Iap)^2)
>
> PV <- 5.15 * sqrt((MSp -MSap)/(k * r))
>
> Value <- c(MSe, MSa, MSap, MSp, k, n, r, EV, AV, Iap, GRR, PV)
> Name <- c("MSe", "MSa", "MSap", "MSp", "k", "n", "r", "EV", "AV", "Iap",
> "GRR", "PV")
> foo1 <- data.frame(Name, Value)
> xtable(foo1)
> @
>
>
> --
> Klaus F. Østergaard, <farremosen(at)gmail dot com>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at 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.
>
>



More information about the R-help mailing list