Questions tagged [xtable]

A library for R that exports tables from R data in LaTeX (and/or html) format. Please do not use this for xtables in ConTeXt which should be tagged extreme-tables.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How to include multiples tables sequentially in the same page

I'm struggling on how can I include a lot of tables sequentially. I'm using \foreach \i in {1,...,23}{ \include{filename\i} } but using the code above, I got one table per page and I would like ...
0
votes
1answer
23 views

remove extra space in xtable in latex

in the following table there are either no space, space, or lots of space, problem is about the alignment {p{}}? how to have a single space only. \documentclass[11pt,authoryear,1p,times,sort&...
1
vote
0answers
49 views

remove extra dot before \ref{} in latex

When I cross-reference a longtable (with label x.big) using \ref{x.big}, I get .tablenumber rather than tablenumber. How to get rid of the dot? Many thanks in advance. \documentclass[11pt,authoryear,...
0
votes
1answer
22 views

long xtable() with align and footnote

have a long table and I would like to do a custom column width, with a footnote, the R code looks like below and align() to specific column width does not working? many thanks in advance, x <- ...
1
vote
2answers
30 views

illegal character in array

have a table like below with a custom width, but i can not run it, any ideas? many thanks in advance \documentclass{article} \usepackage{array} \begin{document} \begin{table}[ht] \centering \...
0
votes
0answers
22 views

no space after xtable in latex

Hello Community I am using print(xtable) for 2 different tables, the spacing is ok in one and in the other table there is not enough space between rows. I am calling the directory same way too \...
0
votes
1answer
40 views

For IEEE ACCESS Template Error encountered in table code when complied. Error message: Undefined control sequence. \sisetup

\documentclass{ieeeaccess} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em ...
1
vote
1answer
30 views

Formatting xtable with different digit sizes

I have a data.frame in R with three columns, A=cbind(c(1,2),c(10^4,10^3),c(4535.45,324.252)) is there a way to generate a LaTeX table, using xtable, such that: The first appears like 1 $ 2 \\ The ...
0
votes
1answer
62 views

This code is not executable for IEEE ACCESS document Class \documentclass{ieeeaccess}. Generates error like this: 1.23}?

\documentclass{ieeeaccess} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{algorithmic} \begin{document} \...
0
votes
1answer
26 views

Table code generate error in IEEE class latex file. Please help

\begin{table} \centering \caption{{Evaluation of actual and predicted load (P.load) in terms of MAPE of our proposed FCRBM based model and existing models (AFC-ANN, Bi-level, MI-ANN) on Dayton grid ...
0
votes
1answer
37 views

How to replace numbers with centered strings in dcolumn table?

In a table produced by the texreg::texreg() function in R I want to replace numerical values with strings. The purpose is to summarize values of a bunch of control variables with a single line and a ...
1
vote
1answer
42 views

R studio cannot make xtable

library(xtable) library(magrittr) library(moonBook) options(ztable.type="html") a=mytable(head(iris)) a x = xtable(a) x i cannot make xtable, just use mytable... want to use xtable, but output like ...
1
vote
1answer
160 views

This code is not executing in the documentclass [journal]{IEEEtran}?

\documentclass[journal]{IEEEtran} \hyphenation{Smart Grid} \usepackage{subfloat} \usepackage{subcaption} \usepackage{graphicx} \usepackage{color} %for colors \usepackage{epstopdf} \usepackage{url} \...
1
vote
1answer
294 views

How to put table in full page when paper format is double column

I am using the double-column paper format, and I've two requirements as follows. First, I need my table to be spanned over the whole width of the document not just one column. Second, if a table is ...
0
votes
1answer
78 views

Scaling output from stable output

print(xtable(x, type = "latex"), floating = FALSE, tabular.environment = "longtable", file = "/Path/Filename.tex") I am using the above code to output a table directly from R. I am using ...
2
votes
1answer
335 views

Getting R xtable to display within a LaTex 'minipage'

I have the following piece of R-markdown / latex / minipage combo code. What I am trying to do is get the xtable output to display within the minipage, along with other text paragraphs surrounding it....
1
vote
2answers
431 views

Runaway argument constructing a tabularx simple table

I want to reproduce this kind of table: I tried writing down this code: \documentclass{article} \usepackage{tabularx,booktabs} \begin{document} \newcolumntype{Y}{>{\centering\...
1
vote
0answers
249 views

R Sweave: print very large dataframe sample which spans on multiple pages inside a floating environment

I'm using R Sweave to output an R document into a LaTeX file through R Studio on a Windows 7. I have a very large data frame from which I have to put a sample at the begin of my document. I use xtable ...
5
votes
2answers
5k views

How to manually make tables using booktabs

I am really new in the use of LaTex and would like some help to make this table using booktabs formatting. I use R and would ideally generate it using xtables package. However, I could not deal with ...
2
votes
2answers
2k views

Missing $ inserted. ^^I^^I &\square

I am new to LaTeX and I am using it to write a questionnaire like this: My current code is the following: \begin{enumerate} \item Statement one. \begin{tabular}{c c c c c c c} \...
1
vote
1answer
1k views

Splitting table in multiple pages in Elsevier journal format (elsarticle.cls)

I am not able to accommodate my table in Elsevier journal manuscript format, so I need to split the table. Since the table has too many columns I rotate the table 90 degree(anticlockwise). And also ...
3
votes
1answer
150 views

Increment Regression Models

I often show regressions tables during presentation and I was wondering if there is a simple way to increment regression models. For instance, I would like to first display model 1 (1) and then ...
1
vote
0answers
2k views

Specify multiple notes of a table by xtable

I want to create a table which may contain multiple notes like : which I found here. This works fine in a pure LaTeX context, yet I'm using knitr to convert my Rnw files (under R) to pdf, because ...
4
votes
1answer
855 views

Removing all hlines in xtable generated longtables

Even by setting hline.after = NULL, a longtable generated by the R package xtable still mantains an hline at the very end of the table. \documentclass{article} \usepackage{longtable} \begin{...
2
votes
1answer
109 views

Is it possible to use cite inside xtable?

If I had a table stored in a data frame: library(xtable) tbl <- data.frame(Name=c("A", "B"),Source=c("\\cite{a}", "\\cite{b}")) tab <- xtable(tbl) print(tab) how would I go about producing a ...
0
votes
1answer
1k views

Including greek letters when saving matrix from R to .tex table

How does one save a table with Greek letters in R, so that LaTeX recognizes and outputs the Greek letters when the table is called in LaTeX ? I am using R to output a table of results, save the ...
3
votes
1answer
179 views

Context - TABLE commands in body of document affecting TABLEs in header

I am trying to use a TABLE as a header in Context (see Using a table as a header in Context). However, the \setupTABLEs and \bTABLE[head|foot]s commands in the body of the document affect the TABLE in ...
2
votes
1answer
105 views

IEEEtran: Inserting a table into an 2 column document

I'm trying to insert a table into my IEEEtran document. Following tables I have created with Excel. Here is my IEEEtran code. Can someone tell me how I can create my table into following code? \...
1
vote
1answer
265 views

How to make multirow “footnote row” for dominating cell in LaTeX Table?

I want to minimise the dominating effect of big cells in tables within a table by the following have two major rows for each row where a dominating row such that the dominating cell will take place ...
1
vote
1answer
96 views

Problem with some \omit and a table within itemize

Good morning/afternoon/evening I have got this source code, below. The result is on the picture on the left. Why is the mark (the black circle) below the table? How to fix it? I want to have got the ...
1
vote
0answers
1k views

R xtable and table width

I have to fit a table with many columns to the width of a page, using xtable and longtable environment. My R code is library(xtable) data <- matrix( data = 1000000000, ncol=14, nrow = 100) x....
3
votes
1answer
1k views

How to change row height within xtable environment?

I would like to change row height such that all rows except the header row will have fix height x and the header row will have eight y. I would like to do this within xtable environment because I ...
1
vote
0answers
684 views

general footnotes in xtable

I am using sweave to create pdf. Using xtable, I am trying to insert a general footnotes under the table (i.e: This symbol means bla bla bla). I've tried a lot of things and everything get me an error ...
1
vote
1answer
209 views

make the TeX xtable results well formatted and easier to read

Is there a way to make the TeX xtable source code results well formatted and easier to read. Example: library(xtable) ## Load example dataset data(tli) print(tli.table) gives \begin{table}[ht] \...
1
vote
2answers
2k views

How to avoid page break after table?

I have a small LaTeX table (tabular) created in R with the xtable package and I would like to place a figure underneath the table on the SAME page. I have tried various things (using packages float, ...
0
votes
1answer
550 views

Default low row height of table and tabular environments [duplicate]

Suppose that we have this code: \begin{table} \caption{xxxx.} \centering \begin{tabular}{|c|c|} \hline \rowcolor{Gray} % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ... 1 & ...
0
votes
1answer
128 views

xtable: extend table to both columns

Using the xtable package, is it possible to give some option to xtable function to generate a tex file which will contain following: ``` \begin{table*} ... \end{table*} ```
2
votes
1answer
938 views

Longtable exceeds page length

Situation: I am using rmarkdown and xtable to iterate the creation of several tables, and output them in Latex to create a PDF. Given that most tables are long, Im using Longtable package. Also, i ...
3
votes
1answer
272 views

Are conditional footnotes possible?

We are looking to create production Latex tables using xtable in R. Each table will have different footnotes based on certain data in the table. For example, in the below table instead of ...
1
vote
0answers
415 views

Extra Curly Braces when creating Xtable using Knitr, after specifiying size

I'm creating a R Markdown document using knitr and am running into trouble using xtable to create a table. My table is very large and I'm trying to reduce the size using the size command in the print ...
2
votes
1answer
748 views

“Missing $ inserted” error; when results='asis'

I have a problem in LyX when I want to export a PDF file using knitr. My chunk is as follows: <<echo=FALSE>>= read_chunk('resumen_3.R') @ <<3_0,echo=FALSE,results='asis'>>= ...
2
votes
1answer
2k views

Wrap text from xtable row names with knitr

I am using knitr to generate pdfs that contain tables that I'm making with xtable. How can I wrap the text in these tables? Here is my best effort so far: \documentclass{article} \begin{document} &...
0
votes
0answers
514 views

Specify horizontal position of xtable output in LaTeX

I originally posted about this on StackOverflow (https://stackoverflow.com/questions/31359737/table-environment-from-xtable), but it was recommended for me to post it here instead. I am using the ...
4
votes
2answers
575 views

Why my table does not center?

For some reasons my table does not center which is odd since I am doing exactly the same with another table in the same tex file and it works. Could someone help me? \documentclass[ 10pt, a4paper, ...
2
votes
1answer
327 views

knitr render html code

How to render html output to pdf in knitr? Here is my code \documentclass{article} \begin{document} <<echo=TRUE, results= 'asis'>>= library(xtable) n <- data.frame(x = 1:6, y = 15:20) ...
4
votes
1answer
4k views

Creating Bold Column Headers using xtable (knitr)

what is the easiest way to bold all column headers using the output of calling xtable, ideally under the print.xtable command. I am using knitr.
2
votes
1answer
3k views

RStudio problem with xtable “results=tex”… “object tex not found”

I am using the 'compile pdf' button in a .Rnw file in Rstudio, including the following: <<longterm1, results=tex, echo=FALSE>>= print(xtable(longterm), include.rownames=FALSE, floating=...
2
votes
1answer
5k views

How to print a table and figure side-by-side in knitr

I see a lot of posts on putting figures side by side with tables without knitr, and posts about putting tables next to tables and figures next to figures in knitr, but nothing on how to put a figure ...
4
votes
1answer
811 views

row and column specifications in xtable output

Using xtable I am trying to format a table x<- 1:5 y<- 11:15 mytable <- table(x,y) print(xtable(mytable)) Which gives: I want to add x and y tags also at the top of the rows and sides ...
7
votes
3answers
2k views

knitr sanitises the % marker for LaTex comments and they show up in the final document

I am writing a knitr document using xtable to get my tables. Xtable inserts by default a comment saying: "latex table generated in R 3.1.0 by stable 1.7-3 package % Thu Sep 18 14:19:21 2014" This ...