Displaying 20 results from an estimated 1000 matches similar to: "Cross Tables with odfTable in odfweave"
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't understand
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
2010 Feb 20
1
Contingency Table - output to odfWeave not working for matrix
Hi guys I'm hoping someone can help me with this. It should be easy but it seems to get stuck for no obvious reason! I am trying to set a report up in odfWeave so that we can re-run the same analysis at 3 time points as the data matures and provide an 'instant' report.
To simplify the situation we have two pieces of data: site_id (numerical value 1-9) and reaction (categorical Y or
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
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
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 =
2010 Sep 17
1
odfWeave UTF-8 error and latin characters
Hello R masters,
I have sent this same message to other lists and none so far could give some
light. I was trying to use odfWeave to generate a report from R and Im
getting an error that I think is related to latin characters. I looked
around and did find some stuff related to this problem about Sweave
http://labmoluscos.wordpress.com/2010/02/18/sweave-latex-character-encoding/
but
did not find a
2009 Jul 06
1
odfWeave: odt-file damaged
Dear all,
I am doing my first steps with odfWeave.
After running the r code (see below), I am trying to open the ODF-document
with open office, but I am getting the error message:
"The file is damaged, but it can be repaired". If I confirm the question and
repair the file with open office, I can open it with the desired output,
which seems to be fine.
My system:
R Version 2.9.1
2009 Nov 04
1
odfweave table styles
Hello List,
Does anyone have examples of custom formatting of tables in odfweave? I know
there is an example of this in the formatting.odt file that comes with the
package, but running that through odfweave gives the following error:
Error: chunk 13 (label=showTableStyles)
Error in names(x) <- value :
'names' attribute [1] must be the same length as the vector [0]
What I am really
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() {
2003 Aug 12
2
Crosstabs
Hello all,
i think i am to silly. I have installed R 1.7.1 (2003-06-16). Installed
some packages like xtables ore xml. I tried out this to installing
packages. Then i tried to make a crosstable like i know it from spss.
They say in this list that it would be going.
I made a table in asci-format, seperated with tabs or blanks and than i
use something like this:
2011 May 13
1
issue with odfWeave running on Windows XP; question about installing packages under Linux
Good morning R community,
I have two questions (and a comment):
1)
A problem with odfWeave. I have an odf document
with a table that spans multiple pages. Each cell in the table is
populated using \sexpr{<R stuff>}. This worked fine on my
own machine (windows 7 box using any R2.x.y, for x>=11) and
on a colleagues machine (Windows XP box running R2.11.1).
However, on a third machine
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
2008 Feb 15
12
Transfer Crosstable to Word-Document
# Dear list,
# I am an R-beginner and
# spent the last days looking for a method to insert tables produced
# with R into a word document. I thought about SPPS: copy a table from
# an SPO-file and paste it into a word document
# (if needed do some formatting with that table).
# Annother idea was, to produce a TEX-file,
# insert it and make it a word-table.
# I found the following libraries, which
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
2010 Mar 17
0
odfWeave: odt-file damaged
Dear all,
I'm resurrecting this old post (about 6 monts old, reproduced thereafter)
because I have struggled against the same problem and found a solution
so that I found it was worth posting for the record.
The simple fix when you want to use odfWeave with 7-ZIP as a
compressing/decompressing utility under windows is to use the
'x' instead of the 'e' option so as to preserve
2013 Apr 11
3
odfWeave: Some questions about potential formatting options
Hello All,
Learning to use the odfWeave package. I really like the package. It has good documentation, makes some very nice looking tables, and seems to 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
2006 Apr 25
1
by() and CrossTable()
I am attempting to produce crosstabulations between two variables for
subgroups defined by a third factor variable. I'm using by() and
CrossTable() in package gmodels. I get the printing of the tables first
and then a printing of each level of the INDICES. For example:
library(gmodels)
by(warpbreaks, warpbreaks$tension, function(x){CrossTable(x$wool,
x$breaks > 30,
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
2008 Mar 09
1
question for crosstable
Good evening R-users!
I have the following problem: i want to get a weighted crosstable along with the adjusted standardized residuals test
Example:
a<-c(1,1,1,1,1,2,2,2,3,3)
b<-c(10,10,23,24,33,45,46,70,21,66)
c<-c(3,3,2,3,4,1,1,1,3,3)
d<-c("a", "b","b","c","a","a","a", "b",