similar to: xtable and column headings

Displaying 20 results from an estimated 3000 matches similar to: "xtable and column headings"

2011 Aug 31
1
Hmisc Latex Question: column headings and Major Column Headings not properly alligned
Dear R users: When I create a table without Major Column headings, my *regular* column headings appear correct in the typeset latex file. The major row heading and row groups are as they should. w <- latex(mytab,title="",file="tab/my.tex",ctable=TRUE,caption="Descriptive statistics by
2004 Jul 15
1
formatting tables with long column names via package:xtable within Sweave
Hi, I use the excellent Sweave tools for writing documents but was wondering how to neatly print a data.frame with long column headings. I cant manage to do this via package:xtable. Typically the labels that I would like use for each column consist of more than one word, but even with just one word, the heading is often wider than the contents of the column. So the number of columns that fits
2004 Aug 27
3
gsub, backslash and xtable
R Version 1.9.1 (2004-06-21) Mac OS X.3.5 Dual 2GHz PowerPC G5 GUI = "AQUA" I have a data.frame comprising percentiles with the column headings containing % characters, e.g. > (pp <- colnames(temp2)) [1] "5%" "10%" "25%" "50%" "75%" "90%" "95%" I use xtable to convert the data.frame to Latex but I want to
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
2009 Jan 10
1
Hmisc-xtable label
Dear all: Does anybody know about label conflicts between xtable and Hmisc? I found a couple of e-mails similar to this problem but is not clear to me how to get around the label problem. The first table(longtable below) is generated with the latex function from Hmisc but for some reason when I try to hyperlink to it,it takes me to the top of the document. The second table created with the xtable
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 Jan 23
0
Questions about xtable and print.xtable
I have been using the wonderful xtable package lately, in combination with Sweave, and I have a couple of general questions along with a more particular one. I'll start with the particular question. I basically have a 1x3 array with column names but no row names. I want to create a latex table with column setting set to "|rrr|". I want the column names to appear, but the
2009 May 26
2
Using package "exams" and xtable
Hello, I am trying to use the package "exams" to construct problem sets. I have constructed an exercise which generates a list of integers and asks the student to compute the median. rx is the vector of n numbers >str(rx) num [1:16] 21 9 8 18 4 12 17 2 9 7 ... I want to print out the entire vector as part of the problem. When I use \Sexpr(rx) only the first value (in this case
2007 Aug 09
1
Need Help: Installing/Using xtable package
Hi all, Let me know if I need to ask this question of the bioconductor group. I used the bioconductor utility to install this package and also the CRAN package.install function. My computer crashed a week ago. Today I reinstalled all my bioconductor/R packages. One of my scripts is giving me the following error: in my script I set: library("xtable") print.xtable(.... and receive this
2009 Jun 19
0
Sweave and xtable floating issues -- SOLVED
Dear all, I've recently made in LyX a report using Sweave and run into troubles with xtable() generated LaTeX tables. One example, xtable() commands inside floats (table, box (minipage), etc.) will make the LaTeX compilation fail. Another, if four-five xtable() commands are run in a sequence, at least one of the generated tables will strangely hop onto the next page. The culprit is that
2009 Jul 29
2
xtable formatting: RED for negative numbers?
I've been experimenting recently with the fantastic Sweave/xtable combination for generating latex. In the xtable vignette, I found this great example of printing a ts object by months. Is there a way to modify this code to generate RED numbers inside xtable for negative results in x.ts? Thanks in advance. - Ken # Sweave/xtable snippet below
2005 Aug 30
2
xtable
I have installed package xtable with su -c 'R CMD INSTALL xtable' and got this promising feedback: * Installing *source* package 'xtable' ... ** R ** data ** help >>> Building/Updating help pages for package 'xtable' Formats: text html latex example * DONE (xtable) Despite that, R returns: Error: couldn't find function "print.xtable"
2009 Jul 29
1
xtable formatting: RED for negative numbers?
I've been experimenting recently with the fantastic Sweave/xtable combination for generating latex. In the xtable vignette, I found this great example of printing a ts object by months. Is there a way to modify this code to generate RED numbers inside xtable for negative results in x.ts? Thanks in advance. - Ken # Sweave/xtable snippet below
2013 Feb 17
1
xtable nlme
Hola a todos Les consulto por un problema con xtable y nlme, tomando un ejemplo del manual de nlme para obtener los resultados en latex utilizando xtable, se puede utilizar el siguiente código, pero hay un problema y causa error. library(nlme) library(xtable) fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc), data = Loblolly, fixed = Asym + R0 + lrc ~ 1,
2011 Aug 22
1
Problem with xtable
Dear all, I am having trouble creating LaTex tables using the xtable command. I am using the bayesm package to analyse data. However, I am unable to generate LaTex tables converting the output from summary(out$deltadraws.) I have made several attempts using xtable but have been unsuccessful and receive the below error message. Does anyone have any ideas on how I can solve this problem or an
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
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"],
2010 Jul 21
1
xtable with ifelse statement
Hi there, I'm very new on R and I hope someone can help me to solve the problem in using the ifelse statement with the xtable function(library xtable). I'm trying to get the printing of the elements of two lists in a sorted way. These two list have in common the their names. I will try to give an example: the first list looks like this: $code1 Code code1 Nation
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
2011 Sep 28
1
Printing an xtable with type = html
I have been playing around with producing tables using xtable and the type = "html" argument when printing. For example, if xtbl is the output of a dataframe which has been run through xtable, using the command: print(xtbl, type = "html", html.table.attributes = "border = '1', align = 'center'") I would be interested to see other examples of