Displaying 20 results from an estimated 500 matches similar to: "How to draw table in Latex without using xtable?"
2004 Aug 17
2
aov summary to matrix
Is there an easy way of converting an aov.summary into a matrix in which
the rows are the factor names and the columns are Df, Sum Sq, Mean Sq, F
value and Pr.
For example, convert
Df Sum Sq Mean Sq F value Pr(>F)
block 5 343.29 68.66 4.4467 0.015939 *
N 1 189.28 189.28 12.2587 0.004372 **
P 1 8.40 8.40 0.5441 0.474904
K
2002 Aug 06
2
AOV in MASS not the same??
I would appreciate it if someone could explain the results of the
example from the aov() help file. The output given below is different
from book
Venables and Ripley - MASS
The results In R1.5.1 (Under windows) is as follows:
> N <- c(0,1,0,1,1,1,0,0,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,0)
> P <- c(1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,0,1,0,1,1,0)
> K <-
2006 Nov 04
1
plotting residuals
Does anyone know how to obtain a plot of residuals by predicted values for a
main-effects aov?
I want to check that the residuals are distributed equally across treatment
means.
Thanks,
Jeff
[[alternative HTML version deleted]]
2010 Apr 21
1
How to obtain the coefficients from a summary of aov ?
Dear Madame, Dear Sir,
I am able to obtain the coefficients from a 'summary' of 'lm', but NOT from a 'summary' of 'aov'.
The following example shows my steps.
## Initialize
rm(list = ls()) # remove (almost) everything in the working environment
utils::data(npk, package="MASS") # get data
model <- yield ~ block + N*P*K
## Using lm
npk.lm <-
2009 Nov 24
6
From R to LaTeX to pdf?
Hi all,
Anyone experienced in the LaTeX format?
I'm trying to use the xtable package to create nice anova tables, but how do I do to produce a pdf from the resulting LaTeX table? I've tried WinShell and MiKTeX, but I couldn't get any of them working...
Here's an example of the output in R:
% latex table generated in R 2.9.2 by xtable 1.5-6 package
% Tue Nov 24
2008 Jul 03
2
latex styling for R regression outputs
Hi everybody,
i recently found the latex() command in the Hmisc library and i am
trying to style some regression outputs with latex. i am pretty new to
latex and math mode. So I wonder if there?s some sample script for a
basic output. I read lots of econometrics books and regression outputs
looked the same all the way. I mean there must be the one simple
styling that is been used so
2019 Jun 12
1
CentOS-announce Digest, Vol 172, Issue 2
Send CentOS-announce mailing list submissions to
centos-announce at centos.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-request at centos.org
You can reach the person managing the list at
centos-announce-owner at centos.org
When
2011 Oct 28
1
xtable with \begin{tabular} and only.contents
I have found that I like having my captions and labels in my latex document
rather than having them contained in my xtable output file (I haven't fully
gone to sweave yet). I know I can do something like this by using the
'only.contents' argument in xtable. Unfortunately, the only.contents
argument also removes the \begin{tabular}{rrrrrr} & \end{tabular} (in the
example below) of
2007 Jun 20
2
"xtable" results doesn't correspond to data.frame
Dear useRs,
Am trying to use xtable on the following data.frame and I don't get what I
expect:
example.table <- data.frame(rbind(
c("Gender"," "," "," "),
cbind(rep(" ",2),c("Male","Female"),c(3.0,4.0),c(3/7,4/7))
))
colnames(example.table) <- c(" "," ","number of
2010 Nov 22
1
Problem setting the number of digits in xtable
DEar list members,
I am currently using Sweave with LaTeX which is great.
I can use xtable for formatting outp of tables but I have a problem setting the number of decimals in xtables when used with dataframe.
I have found an example on the net ith matrix and it works.
For example this works :
> > tmp <- matrix(rnorm(9), 3, 3)
> > xtmp <- xtable(tmp)
> > digits(xtmp)
2008 Sep 24
1
paste in xtable
Dear R help:
I am trying to use paste(), within an ifelse() statement to insert latex
commands into an object that has been created using xtable(). I cannot
make the strings behave as I would like, the '\t' is creating a tab, the
usual method of '\\t' is not working either - nor is any series of
backslashes. The xtable object, I think, automatically alters the
strings. How
2013 May 24
2
xtable() with booktabs option problem
I could have sworn that yesterday xtable(file, booktabs = TRUE) was giving me toprule , midrule and bottomrule outout. Today :
library(xtable)
aa <- table( sample(letters[1:9], 100, replace = TRUE))
xtable(aa,
booktabs = TRUE)
gives me
\begin{table}[ht]
\centering
\begin{tabular}{rr}
\hline
& V1 \\
\hline
a & 15 \\
b & 11 \\
c & 13 \\
d &
2011 Jun 01
1
xtable with conditional formatting using \textcolor
Hello list,
I'm doing a table with scores and I want include colors to represent status
of an individual. I'm using sweave <<results=tex>>= and xtable but I can't
get a result I want. My attemps are
#-----------------------------------------------------------------------------
# code R
da <- data.frame(id=letters[1:5], score=1:5*2)
col <- function(x){
2009 Jun 17
1
Horisontal line in xtable
Hi everyone (Pardon the incorrect terminology of my previous post: "vertical
line...).
I have created a function that uses xtable to print table of frequencies and
percentages with a heading and some sample information (the sample size and
missing values). The function and example data is below.
I want a horisontal line that separates the results from the sample
information i.e. a
2009 Jun 17
0
vertical line in xtable
Hi everyone
I have created a function that uses xtable to print table of frequencies and
percentages with a heading and some sample information (the sample size and
missing values). The function and example data is below.
I want a vertical line that separates the results from the sample
information i.e. a vertical line on the bottom of the line second from last
2008 Jul 03
1
*** significance with xtable
Hello everybody,
i used xtable to get some latex output, which worked pretty well with
my latex document. But somewhere i missed the part where they explain
how to get these nice significance indicating *** into my latex
table. it just stops right after Pr(> |t|)
thanks in advance
matthias
2004 Aug 28
1
Handling of special characters by xtable
It seems that xtable does not escape special characters such as % (which indicates a comment line in LaTeX).
Try these few lines for example:
> library(xtable)
> q<-data.frame(quantile(rnorm(100)))
> xtable(q)
This produces:
% latex table generated in R 1.9.1 by xtable 1.2-3 package
% Sat Aug 28 16:11:05 2004
\begin{table}[ht]
\begin{center}
\begin{tabular}{rr}
\hline
&
2009 Dec 09
1
Exporting Contingency Tables with xtable
Dear R-philes:
I am having an issue with exporting contingency tables with xtable().
I set up a contingency and convert it to a matrix for passing to
xtable() as shown below.
v.cont.table <- table(v_lda$class, grps,
dnn=c("predicted", "observed"))
v.cont.mat <- as.matrix(v.cont.table)
Both produce output as follows:
observed
predicted uh uh~
uh 201
2010 Jul 02
1
help with the xtable package
HI, Dear R community,
I am using the xtable to create the table, but how can I see the table?
The following is the codes I used:
> data(tli)
> tli.table <- xtable(tli[1:10, ])
> digits(tli.table)[c(2, 6)] <- 0
> print(tli.table, floating = FALSE)
% latex table generated in R 2.11.0 by xtable 1.5-6 package
% Thu Jul 1 20:43:43 2010
\begin{tabular}{rrlllr}
\hline
&
2007 Sep 13
1
Problem using xtable on an array
Hi all
I know about producing a minimal example to show my problem. But I'm
having trouble producing a minimal example that displays this
behaviour, so please bear with me to begin with.
Observe: I create an array called model.mat. Some details on this:
> str(model.mat)
num [1:18, 1:4] -0.170 -0.304 -2.617 2.025 -1.610 ...
- attr(*, "dimnames")=List of 2
..$ : chr