The tag has no usage guidance.

learn more… | top users | synonyms

5
votes
0answers
1k views

Color first row in a xtable generated table

I am trying to color the FIRST row of my table. But if I add \rowcolor[gray]{0.95} to the FIRST row the colored row will be the SECOND. Indeed it is quite straight forward to modify from the second ...
2
votes
0answers
107 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 ...
1
vote
0answers
65 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....
1
vote
0answers
60 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
0answers
80 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'>>= ...
1
vote
0answers
117 views

Using xtable with listings package

I am the listings package as suggested by the following solution provided in this question: Getting Sweave code chunks to stay inside page margins? More specifically, I am using the following piece ...
1
vote
0answers
438 views

How do I add a caption to a table within a minipage?

I am using Knitr to generate two tables side by side on a two column layout (ACM sigproc). \begin{table*} \begin{minipage}[h]{0.49\linewidth} <<results='asis'>>= print(xtable(o.stats.sel....
1
vote
0answers
207 views

Define style of xtable

I want to set the style of tables built with xtable by looping on multiple dataframe. I then look for some macro so to set the style in the preamble and not directly within the tabular environment. ...
1
vote
0answers
199 views

Use Xtable to do plus minus

I am using a similar dataset to the following: a= c("Fruits", "Adam","errorA", "steve", "errorS", "apples", 17.1,2.22, 3.2,1.1, "oranges", 3.1,2.55, 18.1,3.2 ) a_table=data.matrix(t(matrix(...
0
votes
0answers
335 views

Longtable in a knitr (PDF) document: using xtable (or kable)

I am new to knitr and I have had some very basic latex knowledge in the past, so I googled already hoping to find a solution that was already posted somewhere. However, I was not able to solve my ...
0
votes
0answers
49 views

Problem to export when running results “asis”

I am new to Lyx and Knitr and I hope you could help me with the following situation: I have a script in R that includes basic operations and a data frame using the xtable package to print it. STEP ...
0
votes
0answers
46 views

xtable: trim horizontal lines in table so there is no indentation

I can make a table using xtable: \documentclass[12pt,a4paper]{extarticle} \usepackage[margin=15mm]{geometry} \begin{document} <<xtable,echo=FALSE, results=tex>>= library(xtable) df <-...
0
votes
0answers
108 views

Specify horizontal position of xtable output in LaTeX

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