Displaying 20 results from an estimated 5000 matches similar to: "Horisontal line in xtable"
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
2004 Jan 18
0
xtable feature addition suggestion
Hi, attached follows a patch to add a feature that I think it would be useful having in the print.xtable function of the xtable package. It adds the option 'tabular.environment' to that function, which could be used to set an alternative tabular environment, as the name already suggests.
This is particulary useful when dealing with long tables, which do not fit in a single page. In the
2008 May 07
1
Sweave, xtable and font size
Hi,
I'm using Sweave with xtable to generate Latex tables. My problem is that some of the tables are too wide, and I would like to use the tiny font for these tables, but not for the others nor for the text. I can't work out how to accomplish that.
The Latex code below does what I want it to, but I have to insert the "\tiny{" and the closing "}" by hand. It
2012 Feb 26
1
Sweave Print xtable
Hi, I'm working with Sweave and I have some trouble generating table. The R
code is:
print(xtable(myTable, caption ="", label="tab:myTab",
digits=3), tabular.environment='tabular', floating=TRUE,
caption.placement="top",size="\\scriptsize")
and the resulting LaTeX table is:
\begin{table}[ht]
\begin{center}
\caption{Principal
2005 Oct 25
0
query on xtable output
Dear all,
I am exporting to latex a matrix via xtable. My matrix includes e.g. 4 rows
and 4 columns. The first two rows containing real values(e.g. a laboratory
parameter's mean value), and the two rows at the bottom containing only
integers (number of cases).
>
mymat<-matrix(c(c(10.52,2.52,12.35,3.63),c(3.52,16.25,13.62,6.36),c(11,12,15,16),c(14,15,16,18)),4,4,byrow=TRUE)
> mymat
2004 Sep 02
0
Two xtable Questions
Hi,
These are two problems I've never seen when I used xtable() before...
R 1.9.1 for Windows XP, xtable version 1.2-3:
> final.df
Loci Chr Marker Position P.values Deviance DF
1 Idd5 1 D1Mit181 42.6 0.0011 103.21 78
2 Idd6/19/20 6 D6Mit374 66.7 0.0014 104.29 78
3 Idd13 2 D2Mit490 64.5 0.0025 97.83 78
4
2012 Feb 01
2
Problem with xtable- rescaling a table
Dear R users,
I am new to Latex and I am using the R package xtable to generate tables.
I want to produce a table that is very long. in the landscape format, but
I would need to rescale the table so that it fits in the page. xtable
enables me to have the landscape format, but I cannot rescale it, and there
seems to be a problem, if I use scalebox in Latex on my output produced
with stable and the
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
2012 Feb 07
1
xtable "beta" testing wanted
Dear R-users,
I've enhanced the "xtable" package, adding numerous features that have been requested by users. The changes are listed below.
The objective throughout has been to avoid any breaking changes. However, as "xtable" is widely used and is a dependency of many packages I'd like to have others try it out before I post it to CRAN. Both bug reports and design
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
2004 Jan 08
2
Sweave & xtable
I am just starting to learn Sweave (really neat tool). I am pretty
early in the learning curve (I had to think a moment ago whether a # or
% was the appropriate comment character).
I have successfully incorporated simple graphics and outputs, but am
having trouble getting a latex (xtable) table to function properly.
Latex is seemingly treating the xtable code as input or verbatim text.
That
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)
2007 Dec 05
0
Export to LaTeX using xtable() - Control the digits to the right of the separator [solved]
Hello everyone,
The thread title speaks for itself. Here's the code that worked for me:
> numSummary(finance[,"Employees"], statistics=c("mean", "sd", "quantiles"))
mean sd 0% 25% 50% 75% 100% n NA
11492.92 29373.14 1777 3040 4267 6553 179774 53 5
> str(numSummary(finance[,"Employees"],
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
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
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 &
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
&
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
&
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
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){