similar to: Problem with xtable

Displaying 20 results from an estimated 300 matches similar to: "Problem with xtable"

2012 Feb 15
1
source code of MARS
Dear Sir/Madam, I am a phd student and I am trying to implement a new approach for the knot selection procedure in MARS algorithm. In order to apply and test the efficiency of my method, is it possible to get the code (sourse) of "earth" library? Thank you for your interest and concern. Best Wishes, Elcin Kartal, Research Assistant Department of Statistics Middle East Technical
2011 Aug 04
0
Problems with Z in rhierMnlRwMixture using bayesm
Dear All, I am using rhierMnlRwMixture in the bayesm package for the analysis of data from a choice experiment. I am trying to follow the margarine example set out in the bayesm manual (p.28). However, after several attempts I keep getting an error message with regards to my Z matrix as below. > Error in Z %*% t(matrix(olddelta, ncol = nz)) : >requires numeric/complex matrix/vector
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
2008 Sep 16
0
How to get line breaks with xtable
Hi, I'm using the xtable function with Sweave and Lyx. The table that I'd like to display has very long string characters in one column. Is there a way to get automatic line breaks for the strings in that column with xtable? Thanks for your help! Erich
2007 Apr 02
0
wrap lines in xtable
Hi, I use the packages Sweave and xtable to generate some LaTeX tables. In one particular case the last column of the table contains lines that are too long to fit in the document and are therefor cut. My question is (hopefully I did not miss anything in the documentation): How can I wrap long lines without fiddling around with the resulting Latex code? Can I do it directly in the Sweave
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
2007 Mar 01
4
question about xtable and Hmisc
I would like to get rid of the row numbers using xtable and latex. The commands d = cbind(1:10,rep(1:2,5)) ans = xtable(d) latex(ans) gives output containing \begin{tabular}{rrr} \hline & 1 & 2 \\ \hline 1 & 1.00 & 1.00 \\ 2 & 2.00 & 2.00 \\ 3 & 3.00 & 1.00 \\ 4 & 4.00 & 2.00 \\ 5 & 5.00 & 1.00 \\ 6 & 6.00 &
2009 Aug 07
0
RE xtable, sweave and resizebox
Hello In doc of xtable.pdf at page 7 : .../... ## Demonstration of longtable support. ## Remember to insert \usepackage{longtable} on your LaTeX preamble x <- matrix(rnorm(1000), ncol = 10) x.big <- xtable(x,label='tabbig',caption='Example of longtable spanning several pages') print(x.big,tabular.environment='longtable',floating=FALSE) x <- x[1:30,] x.small
2012 Feb 03
1
Using {tabularx} latex package with the {xtable} package?
I am trying to solve the problem of having a latex table (produced using the xtable <http://cran.r-project.org/web/packages/xtable/index.html>, then inserted to a latex file using Sweave), exceeding the margins of my LaTeX document. I found that one such solution can be based on the tabularx<http://ctan.org/pkg/tabularx> package, and I am wondering what would be the best way to
2011 May 04
0
xtable without a loop alongside a ggplot
I would like to create a table of my points and identify which 'quadrant' of a plot they are in with the 'origin' at the means. the kicker is i would like to display it right next to or below a ggplot of the data. Maybe xtable isnt the right thing to use, but its the only thing i can think of. Any help is appreciated! set.seed(144) x=rnorm(100,mean=5,sd=1)
2009 Apr 02
1
Sweave, using xtable in a loop doesnt work?
I have a data.frame, data, with 30 factor variables. I would like to tabulate the frequencies of each variable and output to a tex file using Sweave. Here is my code chunk: <<label=tab, echo=FALSE, results=tex>>= library(xtable) for(j in 1:30){   cap <- paste("Frequency counts for Q",j,".", sep="")   xtable(t(table(data[,j])),caption=cap) } @
2010 Jun 23
2
xtable for latex: setting some values globally
Dear All, a quick xtable question. I do have quite a bunch of tables in my latex document which I produce with xtable. That works fine so far. But I wonder is it possible set some values such as "environement", "caption.placement", or "size" globally so that it applies for table unless otherwise specified? If anybody has quick fix, that would be helpful. Thanks and
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
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 Sep 02
2
lower triangle of the correlation matrix with xtable
Dear all, mydata<-data.frame(x1=c(1,4,6),x2=c(3,1,2),x3=c(2,1,3)) cor(mydata) x1 x2 x3 x1 1.0000000 -0.5960396 0.3973597 x2 -0.5960396 1.0000000 0.5000000 x3 0.3973597 0.5000000 1.0000000 I wonder if it is possible to fill only lower triangle of this correlation matrix? Using 'dist' doesn't seem to be useful as it doesnt allow to convert this table
2005 Apr 14
1
xtable POSIXt
Hi, I was trying like to print out data frame with POSIXct column in html format using xtable package, but I got error message when trying to print the table. Here is example: aaa<-data.frame(as.POSIXct(strptime('03 2005', '%d %Y')),0) aaa.tab<-xtable(aaa) print(aaa.tab) Error in Math.POSIXt(x + ifelse(x == 0, 1, 0)) : abs not defined for POSIXt objects
2004 Oct 12
1
Sweave and xtable
Dear List: I have some coded embedded within a LaTeX document where I subset a dataframe and use xtable to place it in my appendix. However, one of the tables is rather large and seems to extend beyond the page length. Is there a nice way to use Sweave to continue this table onto the next page? I could easily break this up in tex into two tables, but I imagine there is a better way of doing so.
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
2002 Feb 22
0
modifying xtable output
I have been using the xtable package to export great latex tables and am very pleased with the package. Is there a way to modify the format of the tables: (1) some of my tables are to long to fit on a single page. I would like to modify the xtable to produce a longtable compatible with the longtable.sty in latex. Are these modifications possible and if so where are they documented? (2) Is it
2007 Sep 26
0
xtable with dupplicate rownames
Hello Ani, I am having the same problem with xtable and duplicate rownames. Would it be possible for you to post your solution? Best, Sacha Kapoor PhD Candidate Department of Economics University of Toronto