search for: longtable

Displaying 20 results from an estimated 47 matches for "longtable".

2020 Sep 24
1
How to use `[` without evaluating the arguments.
...to replicate this API as follows. I have defined an S4 which contains an S3 class as follows: #' Define an S3 Class #' #' Allows use of S3 methods with new S4 class. This is required to overcome #' limitations of the `[` S4 method. #' setOldClass('long.table') #' LongTable class definition #' #' Define a private constructor method to be used to build a `LongTable` object. #' #' @param drugs [`data.table`] #' @param cells [`data.table`] #' @param assays [`list`] #' @param metadata [`list`] #' #' #' @return [`LongTable`] object c...
2008 Jul 02
1
Hmisc latex function with longtable option
Hello - I'm trying to use Hmisc's latex function to produce a postscript file of a data.frame, using the longtable = TRUE option. When I run, for example, ## sample R code dvips(latex(data.frame(a = rnorm(100), b = rnorm(100)), longtable = TRUE), file = "test.ps") latex runs successfully and a test.ps file is produced. However, I see the following in the output that the latex command...
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
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 package(bottom of document)hyperlinks OK, but if I would create the bottom table first using xtable and then crea...
2009 Jan 07
1
xtable-longtable question
Hello: I am using Sweave to generate a PDF with figures and tables and was wondering if is possible to carry on table headers and some kind of caption like 'Continued' to the next PDF page when creating long tables. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA
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 <- matrix(...
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 <-...
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} \setlongtables \begin{long...
2006 Oct 28
1
(kein Betreff)
...", rownamesTexCmd = NULL, colnamesTexCmd = NULL, cellTexCmds = NULL, rowname, cgroup.just = rep("c", length(n.cgroup)), colheads = dimnames(cx)[[2]], extracolheads = NULL, extracolsize = "scriptsize", dcolumn = FALSE, numeric.dollar = !dcolumn, cdot = FALSE, longtable = FALSE, draft.longtable = TRUE, ctable = FALSE, booktabs = FALSE, table.env = TRUE, here = FALSE, lines.page = 40, caption = NULL, caption.lot = NULL, caption.loc = c("top", "bottom"), double.slash = FALSE, vbar = FALSE, collabel.just = rep("c",...
2008 Mar 17
8
Table of basic descriptive statistics like SPSS
...text file (the first part is cut) #delete some variables. Or can I exclude variables from #beeing analyzed by "describe" to reduce the numer of cols? df$kurtosis <- df$skew <- df$se <- NULL x.df <- xtable(df) #Create an xtable object print(x.df, tabular.environment = "longtable", , floating = FALSE, file="c:\\temp\\descript.tex") #create latex file # produce dvi file in working directory (from tools) texi2dvi("c:\\temp\\descript.tex") #the lines below have to be added #Problem: these lines have to be added "manually" to the late...
2006 Feb 12
1
Mathematical typesetting of column heads using the latex (Hmisc) function
Dear r-helpers, I would very much appreciate help with the following problem: The following command (in a .Rnw file) latex(anova(e7.lmer3, e7.lmer4), file = 'e7lmer34.tex', rowname = c ('nonlinear', 'linear'), longtable = FALSE, dcolumn = T, booktabs = T, table.env = F) produces the following output after running Sweave: % latex.default(anova(e7.lmer1, e7.lmer2), file = "e7lmer12.tex", rowname = c("nonlinear", "linear"), longtable = FALSE, dcolumn = T, booktabs = T,...
2010 Jul 13
1
latex table question
...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 could lend some help on this matter. \documentclass[11pt]{article} \usepackage{longtable,verbatim} \usepackage{longtable,pdflscape,graphicx} \usepackage{fmtcount,hyperref} % displaying latex counters ?%\usepackage[top=0.2inch, bottom=0.2inch, left=2cm, right=2cm]{geometry} \usepackage{fullpage} \usepackage{ctable} \title{United States Department of the Interior} \begin{document} ?%\se...
2010 Jan 26
3
Formatting cgroup and factor level labels in Hmisc latex function
...ed and/or hyphenated to make the columns evenly spaced? 2. Is there something like a 'widetable' package that can break a wide table into several tables with repeated 'rgroup' labels? As You can see in the screenshot, the table runs way off the page. And I know that there is a 'longtable' package that can do exactly this, but for tables with long rgroup lists.
2007 Dec 06
0
alternatives to latex() or xtable()
...pathDist.indices),caption="Path Characteristics") print(pathDist.table, type="latex",file="E:/xdrive/projects/Ghana_air/backpack_data/plots/pathDist.table.tex", include.rownames = FALSE, include.colnames = TRUE, sanitize.text.function = force, tabular.environment='longtable', floating=FALSE) # Make a table by group # Usage: # print(latex.table.by(test.df), include.rownames = FALSE, include.colnames = TRUE, sanitize.text.function = force) # then add \usepackage{multirow} to the preamble of your LaTeX document # for longtable support, add ,tabular.environ...
2006 Mar 13
1
Formatting an anova table using latex
Hi r-helpers, When I issue the command latex(anova(raw1.lmer0, raw1.lmer, raw1.lmerI), file = 'raw1.tex', rownamesTexCmd = c('baR', 'addit', 'multip'), longtable = F, dcolumn = T, booktabs = T, t able.env = F, colheads = NULL, colnamesTexCmd = c ('', 'df', 'aic', 'bic', 'logl', 'chisq', 'chisqdf', 'prchisq')) I get: % latex.default(anova(raw1.lmer0, raw1.lmer, raw1.lmerI), file = "r...
2010 Mar 08
0
page boundaries for latex printing of summary.formula objects in Hmisc
...39;m guessing only those who have used the Hmisc package's summary.formula function with LaTeX will be able to offer much help here. I am using the Hmisc package's summary.formula function to produce tables for a LaTeX report. The "latex" function in the same package supports longtables in LaTeX. Ideally, I would like for page breaks in the LaTeX output to only occur at variable boundaries. ## Sample R code ## load the Hmisc package library(Hmisc) ## create an example data.frame test.df <- data.frame(sex = gl(2, 110, labels = c("Male", "Female")),...
2009 Jan 12
3
merge table rows (\multirow)
...h' column using \multirow. For example for the column 'Week' I want July to be merged into one row(weeks 27,28,29,30) and so on for the following weeks. Below, I am creating a PDF using Sweave, MikTex,R-2.8.1 and windows XP to show an example. \documentclass[11pt]{article} \usepackage{longtable,verbatim} \title{How to implement multirow with Sweave} \begin{document} \maketitle <<dataAnalysis.R,echo=FALSE>>= sampDat <- "Month, Week, Est.passage, Med.FL July 27 665 34 July 28 2,232 35 July 29 9,241 35 July 30 28,464 35 Aug 31...
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 possible to start a table with a double horizontal line (\hline\hline). With best wishes and kind regards I am Sincerely, Corey A. Moffet Instructor Department of Range,...
2010 Jun 10
1
Latex: Date Format conversion
Hi: Can't find?a way to convert?from shortDate to LongDate format. I?got: 3/10/10 that I want to convert to March 10, 2010. I am using: \documentclass[11pt]{article} \usepackage{longtable,verbatim} \usepackage{ctable} \usepackage{datetime} \title{my title} \begin{document} ? % Convert date \mmmmddyyyydate\3/10/10 end{document}? My report is changing every two weeks so I?will eventually use \Sexpr{report[1,1]} to grab the date from?column 1, row 1 of a table named "report&quot...
2010 Jun 10
1
Date conversion
Hi: Can't find?a way to convert?from shortDate to LongDate format. I?got: 3/10/10 that I want to convert to March 10, 2010. I am using: \documentclass[11pt]{article} \usepackage{longtable,verbatim} \usepackage{ctable} \usepackage{datetime} \title{my title} \begin{document} ? % Convert date \mmmmddyyyydate\3/10/10 end{document}? My report is changing every two weeks so I?will eventually use \Sexpr{report[1,1]} to grab the date from?column 1, row 1 of a table named "report&quot...