search for: odftable

Displaying 20 results from an estimated 20 matches for "odftable".

2009 Mar 02
1
Cross Tables with odfTable in odfweave
Hi, I've been trying to prepare some crosstables for some survey questions for a client. I have been using the CrossTable function in the gmodels package. However, this command only seems to be able to create CrossTables in text documents. I've been trying to use odfTable in odfweave to create tables that are standalone objects in the document that I can then convert to other formats, copy and paste and do whatever with. The problem is no matter how I try to get the CrossTable into the odfTable, i either get an error message saying there is no appropriate metho...
2006 Nov 24
2
odfTable: how to escape <
Dear All, I'm appreciating odfWeave as a nice reporting tool, but I had some pain in producing tables with odfTable command where the first column began with < or > such as in age class heading, for example: <35 35-39 40-49 50-50 >60 In this case, to avoid a content.xml error, I had to change <35 in less than 35 and > 60 in over 60. Anyone knows how to escape those characters while producin...
2010 Feb 20
1
Contingency Table - output to odfWeave not working for matrix
...with (mydata, table (site_id, reaction)) to give me a 'table' that looks like this: reaction site_id N Y 1 9 6 2 9 6 3 9 6 ... 7 9 6 8 9 6 9 9 6 I can pass that as plain text to odf, but I want to make it a properly formatted table. Executing odfTable(with (mydata, table (site_id, reaction))) results in: Error in UseMethod("odfTable") : no applicable method for "odfTable", which I assume is because the output of table is not a dataframe, vector or matrix which is what odfTable needs. So I got more creative - but nothing is...
2007 Jun 05
1
odfTable
Hello, I am using the odfWeave packages; I draw a table using the function odfTable: partCols <- gsub(?\\.?, ? ?, names(partenaires)) odfTable(partenaires, useRowNames = FALSE, colnames=partCols) it's working as I have a table in my output file. I would like to know how to change the background color for the header cells. I assuming i have to use tableStyles, but I don&...
2010 Feb 09
1
odfTable: table width and alignment
Dear R and odfWeave users, I am trying to figure out how to control table width and alignment on the page for a table generated by odfTable. Based on reading odfWeave documentation (including formattingOut.odt), here is how I manipulate the styles: st = getStyleDefs() # modify the table style tab = getStyles()$table st[[tab]]$align = "center" # seems to have no effect st[[tab]]$marginLeft = "2.0 in"...
2010 Sep 17
1
odfWeave UTF-8 error and latin characters
...'ó' and 'ã' that odfWeave is not recognizing properly. The error follows below. Just to make it clear: Windows vista (default language - Brazilian Portuguese), R 2.11.1, odfWeave 0.7.11, OpenOffice 3.0.1 in my odt file ... <<tabela2, echo = FALSE, results = xml>>= odfTable(tabela2,useRowNames=T,name ='Tabela 2') @ in R console ... >library(odfWeave) >imageDefs <- getImageDefs() >imageDefs$type <- 'bmp' >imageDefs$device <- 'bmp' >setImageDefs(imageDefs) >options(SweaveSyntax="SweaveSyntaxNoweb") >odf...
2008 Mar 26
1
OdfWeave and contingency tables
Hi, I would like to use odfWeave to output some contingency tables (the output of "table") into OOo. I know I can do this in LaTex (using "latex" in the Hmisc package), but I was wondering if it is possible in OdfWeave. My documentation to odfTable says inputs can only be vector, matrix or data.frame, and I'm having a hard time converting my table into one of these formats. Regards Abhijit
2009 Jan 13
1
odfWeave: Error in matrixPaste(...)
Hello all, I try the follow test with an odf file. *INPUT: teste.odt* <teste, results=xml>>= x <- matrix(rnorm(6), nc=2) xst <- tableStyles(x, useRowNames = TRUE, header = NULL) odfTable(x, styles=xst, colnames = NULL, useRowNames = TRUE) @ and I get this error: *OUTPUT error:* Error: chunk 1 (label=teste) Error in matrixPaste(textStart, textName, textEnd, x, tagEnd, sep = rep("", : all matrices must have the same dim Any hint is welcome. Thanks in advance Cleb...
2009 Jul 06
1
odfWeave: odt-file damaged
...############################################################## # Contents of my Open office document <<Initiate, results = hide, echo= FALSE>>= #First steps with odfWeave attach(iris) @ There are \Sexpr{length(iris[, 1])} observations. <<Table, echo=FALSE, results= xml>>= odfTable(iris[1:5,]) @ <<Table2, echo=FALSE, results= xml>>= tab <- round(apply(iris[, 1:4], 2, mean), 2) odfTable(tab, horizontal= TRUE) @ <<Boxplot, echo=FALSE, fig=TRUE>>= boxplot(Sepal.Length~Species) @ #######################################################################...
2006 Dec 27
0
Formatting an arry to typeset as a table
...return an array of coefficients along with confidence intetervals for each coefficient. My intent is to eventually typeset the coefficients and intervals into a table (or tables) in a document. I would like to use existing tools such as the 'latex' function in the Hmisc package, the 'odfTable' function in odfWeave package, or 'HTML' in the R2HTML package (or any others that work similarly). This is fairly straight forward for 2 dimensional arrays (matrices) without the confidence intervals, just add the proper dimnames and call latex or whatever. In some cases the array is...
2010 Jan 06
2
problem with odfWeave
Hello, I have encountered problems using odfdWeave. I actually have the same error message as was reported in this message ( http://tolstoy.newcastle.edu.au/R/e6/help/09/01/0872.html), but I don't quite understand the answer made by Max Kuhn ("You need to cat the results using odfCAt, otherwise you are just writing the output with no XML around it."). What I am supposed to do
2011 Sep 15
1
odfWeave: Combining multiple output statements in a function
What is the correct way to combine multiple calls to odfCat, odfItemize, odfTable etc. inside a function? As an example lets say I have a function that needs to write two paragraphs of text and a list to the resulting odf-document (the real function has much more complex logic, but I don't think thats relevant). My first guess would be: exampleOutput <- function()...
2009 Nov 04
1
odfweave table styles
...=FALSE>>= bluesYes <- which(outTable[,2] >= 3 & outTable[,2] < 4) namel <- colnames(outTable) tstyles <- tableStyles(outTable, useRowNames = F, header = namel) tstyles$cell[bluesYes,2] <- "highlight" @ <<corrTable,echo=FALSE,results=xml>>= odfTable(outTable, styles = tstyles, useRowNames = F, colnames = namel) @ My code runs and does not throw an error, but the resulting table does not have the rows I asked for highlighted. If I check the tableStyles object the values of $cell are properly set as I want. What are valid values that tableStyle...
2013 Apr 11
3
odfWeave: Some questions about potential formatting options
...o have lots of options for customizing output. There are a few things I'd like to do that don't seem to be covered in the documentation though. So I'm not sure if they're possible or not. Here's a list of some things I'd like to be able to do: 1. Make titles generated by odfTableCaption/odfFigureCaption bold 2. Add footnotes to tables (using something other than odfCat) 3. Control the width of columns 4. Control the alignment of columns (first column left and centered otherwise) Is it possible to do any or all of these things using odfWeave? Thanks, Paul
2009 Oct 08
3
odfWeave & XML error in post-processing
I've been happily building a file with odfWeave, and just as the hour draws nigh for it to be sent off, odfWeave or XML throws the following catastrophic error: ...this is the tail of entirely uneventful processing of input file..... 31 : term xml(label=LR_Fall_Model_Results) 32 : term verbatim(label=LR_Model_Fall_graph) 33 : term xml(label=LR_OMC_tab) 'content_1.xml' has
2011 May 13
1
issue with odfWeave running on Windows XP; question about installing packages under Linux
...was a constant error across all machines, that would be annoying, but ok. My questions are: a) Can anyone think of a sensible suggestion why has this happened only on one machine, and not on other machines? b) Is there any way of handling such silent xml modifications (apart from odfTable, which I have only just bumped into, or extremely judicious choice of table construction, which is tedious and unreliable)? 2) When installing some packages on linux (notably RODBC and XML), you need to ensure that you linux distro has extra header files installed. This is a particular...
2010 Mar 17
0
odfWeave: odt-file damaged
...> > > <<Initiate, results = hide, echo= FALSE>>= > > #First steps with odfWeave > > attach(iris) > > @ > > > > There are \Sexpr{length(iris[, 1])} observations. > > > > <<Table, echo=FALSE, results= xml>>= > > odfTable(iris[1:5,]) > > @ > > > > <<Table2, echo=FALSE, results= xml>>= > > tab <- round(apply(iris[, 1:4], 2, mean), 2) > > odfTable(tab, horizontal= TRUE) > > @ > > > > <<Boxplot, echo=FALSE, fig=TRUE>>= > > boxplot...
2008 Feb 29
2
printing tables to a pdf
Dear R community, I wish to print tables into a pdf file. How can this be done, adding headers and several tables to the same file? Thanking you for your attention, Georg. ***************************** Georg Ehret Johns Hopkins Baltimore - US [[alternative HTML version deleted]]
2010 Apr 28
1
Errors when trying to open odfWeave documents
Hello I tried the odfWeave package today, by running the formatting.odt and example.odt files that are included with the package. They both ran fine, but when I try to open them in my OpenOffice (OpenOffice 3.1.1 on Kubuntu 9.10) I get an error "Format error discovered in the file in sub-document content.xml at 1293,124(row,col)." I also tried to open them in MS Word 2003 (Windows
2010 Feb 21
1
odfWeave - merged table cells, and adding information like totals and p-values
I'm hoping I'm missing some (probably fundamental basic process) which might make my life easier! Lets assume I have a 3 column table summarizing results from a trial from three arms (Arm A, B and C). For each arm there will be a number of pieces of information to report. The simplest example might be to compare this to the demographic comparisons often seen in clinical traisl where you