similar to: Problem with formatted xtable in R 2.5.0

Displaying 20 results from an estimated 1000 matches similar to: "Problem with formatted xtable in R 2.5.0"

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
2010 Mar 13
2
Un poco de ayuda con xtable
Hola, buenas tardes: Necesitaba un poco de socorro con xtable, si fuese posible. Mi problema es que quiero 'formatear' específicamente algunas celdas de una tabla generada con xtable y no soy capaz. Detallo el problema de ejemplo: vv<-rbind(c(1,1,0,1),c(0,0,1,1)) vv[2,3]<-<-paste("\\textbf{",vv[2,3],"}",sep="") xtable(vv) > xtable(vv) % latex
2011 Aug 21
1
Multiple R linear models into one Latex table
Dear community, I had been looking for an easy way to produce latex tables from R output. xtable() and the package apsrtable produce good outputs but they are not exactly what I was looking for. I wrote this code that generates regression tables from multiple R linear models. I want to share it because it might be useful for someone else, and because I would appreciate comments on how to
2010 Jul 22
1
pagebreak in xtable and columns'width
Dear list, I'm using the Sweave function in order to get some report. Here one chunk: <<echo=F,results=tex>>= report<-lapply(repor, function(x) { (print(xtable(data.frame(x[1:2,]), align="|l|rrr|"),floating=FALSE,tabular. environment="longtable",include.colnames=FALSE,size="\\small"))
2009 Jan 08
1
longtable example
Hi: Could someone try to run this example? I can't make it work. ## Not run: \begin{small} \setlongtables \begin{longtable}{ <<results=tex,fig=FALSE>>= cat(paste(c('c', rep('cc', 34/2-1), 'c'), collapse='@{\hspace{2pt}}')) @ } \hline \endhead \hline \endfoot <<results=tex,fig=FALSE>>= library(xtable) set.seed(2345) res
2012 Mar 20
3
R (Bold font) and Latex
Hi, I am using R and latex for generating report. I need R result to be in bold face. For instance. x<-c(1,0,2,4) I need to print its output in bold face. x *1 2 3 4* I attempted to use textbf{} but can not write R output inside it. How can i implement it. Thanks in advance. Regards -- View this message in context:
2010 Jul 13
1
latex table question
Hi: My head is spinning with this latex doc so hopefully after I align my tables to the left of the page my headache are going to be over. I always use: \hspace*{-0.1in} to move my figures horizontally to the left margin of the page but the table below doesn't move at all, but instead it gets sideways. Not sure if \begin{landscape} has something to do with it or is just me. I? hope someone
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
2009 Dec 09
2
Recent TeX changes and R/package manuals
As some of you will be aware, TeXLive 2009 was released last month having blocked updates on earlier versions since May. This has lead to a flood of updates of LaTeX packages, as a result of which the PDF manuals of R 2.10.0 and earlier will no longer build, for two separate reasons. For MiKTeX users: at least version 2.8 (the current one) has the same updates (a week or so later) and has
2006 Dec 25
1
Hmisc - some latex problems
If I use latex with describe: (faithful is the Old faithful data) latex(describe(faithful),file="describe.tex") then the first few lines of describe.tex are \begin{spacing}{0.7} \begin{center} \bf faithful \\ 2 Variables~~~~~ 272 ~Observations \end{center} I have two problems. First, I don't know what package the environment "spacing" comes from. (There is also a
2009 Jan 08
10
help
Hi: I am going through some of the xtable examples and I can't make the one below work. I need to create a longtable on the fly keeping the column headers for all the pages and I thought this example could give some ideas on how to do it. I am using Sweave and xtable to create my tables and graphics. I wonder if someone could tell me what's wrong. Thanks ## Not run: \begin{small}
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
Hello, I'm trying to put a dynamic table and a dynamic graph side by side in a pdf document using Sweave. The data.frame used to generate the table is called rg (rg.txt): "Date"; "Code"; "Data1"; "Data2" "2009-03-10";"1";1958;147 "2009-03-10";"2";302;144 "2009-03-10";"3";4;141
2010 Aug 04
1
Problem using R and Beamer...
Dear [R] and beamer community, I am trying to build a presentation using beamer and [R]. I can Sweave the file; however, when I run pdflatex on the file i get the following error: ! FancyVerb Error: Extraneous input `> a = 123450 > b = -0.69 \end {Sinput} \end {Schunk} \end { beamer at frameslide}\ifbeamer at twoscreenstext \beamer at dosecondscreennow {{fragile} \frametitle
2007 Sep 17
1
longtable and Sweave
Dear Sweave-users, I want to print listing using sweave. Because my tables are very big, I use the longtable option. But, is it possible to recall the first line of the table (e.g the colnames line) on each new page ? Thanks for your help. Delphine
2013 May 17
2
formatting column names of data frame
Is there any way to format the headers of data frames, for printing? I am using Sweave to generate formatted reports. In Sweave, I read in a data.frame: result <- read.table(path.to.table); then display it: print.data.frame(result); This gives me what I expect in the eventual final output: Record Average Maximum 1 34
2005 May 03
1
Rd.sty error
I had written a vignette and included a \usepackage{Rd} command to make it possible to include latex'ed Rd files in the vignette. However, when loading Rd.sty texShop produces the following error: l. 180 ...d}[1]{\ifmmode\bm{#1}\else\textbf{#1}\fi} This is on Max OS X 3.9 and R 2.0.1 Has anyone seen this before and/or is it problematic? I'm not sure whether the output suffers from this
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
2000 Oct 27
0
R reference card
A student wanted a reference card, so I made the following. Someone might want to fix it up, adapt it, make it into a screen saver, demolish it, or whatever. I will surely do some of those. My version will remain in http://www.psych.upenn.edu/~baron/refcard.pdf Here is the Latex text. The package "hanging.sty" probably will have to come from CTAN. Jon ----------
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
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 &