search for: rgroup

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

Did you mean: group
2005 Aug 30
1
Convert ftable to latex?
Dear list, I cannot make the latex command to output a ftable objet the way I want it. Is it posible? I found a post in the archives saying that one should use the rgroup and n.rgroup arguments to supply the row names, but so far I have been unsuccessful. This is what I have: > (ftable(tapply(worksub$vot,list(votcat=worksub$votcat,age=worksub$agemF,voicetype=worksub$Type),FUN="distribution.table.fun",digits=4)) -> ftab) voicetype...
2009 Jan 22
2
"latex" in Hmisc: cell formating
...0,6)),] <- "color{red}" > cell.format[c(seq(5,180,6),seq(6,180,6)),] <- "color{green}" > > latex(table1, where='htbp', long=TRUE, lines.page=1000, size="scriptsize", + cgroup=c("group1","group2"), n.cgroup=c(6,1), + rgroup=c("n=1","n=5","n=10","n=20","n=50"), n.rgroup=rep(36,5), + cellTexCmds=cell.format, numeric.dollar = FALSE) Error in cat(rcellTexCmds[i, colNum], " ", cx[i, colNum], file = file, : subscript out of bounds > > ## if I remo...
2011 Aug 31
1
Hmisc Latex Question: column headings and Major Column Headings not properly alligned
...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 Covariate",caption.loc="bottom",label="tab:mytab",where="!htbp",n.rgroup=c(3,3),rgroup=c("Type I","Type II")) However, I'm trying to use cgroup and n.cgroup to group my columns under appropriate heading as: w <- latex(mytab,title="",file="tab/mytab.tex",ctable=TRUE,caption="Descriptive statistics by Covariate",c...
2010 Jan 26
3
Formatting cgroup and factor level labels in Hmisc latex function
...e9096/table.png So, how can I make sure that the cgroup labels and the factor level labels are sufficiently line breaked 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.
2006 Oct 28
1
(kein Betreff)
...e function head, which reads on my installation: function (object, title = first.word(deparse(substitute(object))), file = paste(title, ".tex", sep = ""), append = FALSE, label = title, rowlabel = title, rowlabel.just = "l", cgroup = NULL, n.cgroup = NULL, rgroup = NULL, n.rgroup = NULL, cgroupTexCmd = "bfseries", rgroupTexCmd = "bfseries", rownamesTexCmd = NULL, colnamesTexCmd = NULL, cellTexCmds = NULL, rowname, cgroup.just = rep("c", length(n.cgroup)), colheads = dimnames(cx)[[2]], extracolheads = NULL, extracols...
2010 Mar 08
0
page boundaries for latex printing of summary.formula objects in Hmisc
...0)}\tabularnewline I expect this given the documentation in ?latex of lines.page, which is set to 40 by default. lines.page: Applies if ?longtable=TRUE?. No more than ?lines.page? lines in the body of a table will be placed on a single page. Page breaks will only occur at ?rgroup? boundaries. The problem is that variable boundaries don't in general correspond to constants, like 40 lines. So, rgroup sounds promising. I want the lines per variable to correspond to be the n.rgroup values, but since my tables are dynamic, in that the variables and number of levels in...
2008 Oct 18
0
Several problems with hmisc latex function
...5) y <- letters[1:6] x <- data.frame(x, y) cell.format <- matrix(rep("", NCOL(x) * NROW(x)), ncol = NCOL(x)) cell.format[1,1]<-"bfseries" latex(x, file = "", cgroup = c("Group A", "Group B", "Group C"), n.cgroup = c(2, 2, 2), rgroup = c("First", "Second"), n.rgroup = c(4, + 2), colnamesTexCmd = "color{green}", cgroupTexCmd = "scshape", rgroupTexCmd = "bfseries", numeric.dollar = FALSE, title = "", ctable = TRUE, label = "tab:severalCgroups", caption = &qu...
2005 Aug 18
1
How do I make a Sweave + latex table out of this ?
Dear list, I have a table that I would like to convert to latex for inclusion into a Sweave file. > round(ftable(prop.table(xtabs(~agemF + votcat + Type , data=work),margin=2))*100,1) Type Voiced Voiceless unaspirated Voiceless aspirated agemF votcat 18 - 24 Prevoiced 2.6 8.7
2006 Jul 15
1
Some problems with latex(ftable)
...can work with the generated t.tex file to get the rest of the detail. Or you can work with the numerous arguments we built into latex (see ?latex) to get some of them automatically generated. tmp2.latex <- latex(t(x), col.just=rep(c("l","r"), c(3,6)), n.rgroup=c(3,6), file="t2.tex") Now open up t2.latex and pre- and append the latex controls to it. This works well for one or two examples. To do many, then you will need to follow Frank's suggestion and build all of this into a method. Once the method works well, send it to Frank and he...
2009 Jan 12
3
merge table rows (\multirow)
Hi: I need help merging rows. I am trying to merge the 'Month' 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
2007 Nov 05
5
xtable.by
Hi all, I have a series of measurements made over different types of road surfaces and capacity that I want to summarize in tables via LaTeX. Ideally I'd like a table similar to this ( http://www.andy-roberts.net/misc/latex/tutorial4/multirow.png ) with mean/SD of the measurement broken down by road type (both surface and capacity). Ideally it would be extensible so that when I add layers
2007 Feb 13
6
mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Hello all. I''ve recently installed the 0.2.2 pre-release of mongrel_cluster to try out the new --clean option. However, after installing, when I give a simple "mongrel_rails" command, the cluster::status command is not listed. The error I receive when I do try and run the full "mongrel_rails cluster::status" is... ERROR RUNNING
2009 Oct 29
0
ascii package updated
...method - ftable method - packageDescription method - sessionInfo method - new option "label" for list.type argument - new rownames and colnames arguments - cgroup argument works with txt2tags output - improve col alignment in txt2tags output - improve row and col span (cgroup and rgroup) - remove SweaveAscii() function - new Asciidoc(), T2t(), Sphinx() and Org() functions (wrapper for Sweave("file.Rnw", RweaveXxx)) Best, David Hajage [[alternative HTML version deleted]] _______________________________________________ R-packages mailing list R-packages at r-project...
2006 Nov 30
1
error in latex() : n.group : RESOLVED
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible Url : https://stat.ethz.ch/pipermail/r-help/attachments/20061130/6a0902a7/attachment.pl
2007 Nov 26
2
ftable as latex (with Hmisc?)
Dear List, possibly called Frank, I tried to create an ftable lookalike of the following data set in LaTeX/Sweave with summary(formula,..), but I could not get it to work for count tables; numeric tables work fine. summary(formula,...,fun="table") does not give the full cross breakdown. Other suggestions welcome. Note that in the output there should be empty fields on repeated
2008 May 23
1
Colspan & rowspan
Hi, What's the best way to build tables with multiple sets of column/row headings, each spanning 1 or more cols/rows, similar to the colspan/ rowspan options in HTML. I am using Sweave but couldn't find an option to do this in xtable. I can obviously build it by hand, just wanted to make sure there wasn't an easier way. Thanks.
2009 Oct 29
0
ascii package updated
...method - ftable method - packageDescription method - sessionInfo method - new option "label" for list.type argument - new rownames and colnames arguments - cgroup argument works with txt2tags output - improve col alignment in txt2tags output - improve row and col span (cgroup and rgroup) - remove SweaveAscii() function - new Asciidoc(), T2t(), Sphinx() and Org() functions (wrapper for Sweave("file.Rnw", RweaveXxx)) Best, David Hajage [[alternative HTML version deleted]] _______________________________________________ R-packages mailing list R-packages at r-project...
2012 Feb 27
0
Suggestion on Model Def - reg in nlme
Dear RGroup I have a data of the type shown below: I am trying to use lme function followed by post hoc test as given in the code below. Am I right in my model definition, given the problem data structure. in the example, i have used column names of my data frame so that it is self explanatory. library(r...
2011 May 26
1
dataframe - column value calculation in R
Dear RGroup I have a requirement for which I am seeking help. I am looking at automating the last column calculation through R when having the data of the other columns as a dataframe, In excel I can do using the formula function as given below, however, hereagain for the number of observations that come un...
2013 Mar 15
2
latex(test, collabel=) returns wrong latex code?
Hello: I'm working with a 2-dimensional table that looks sort of like test below. I'm trying to produce latex code that will add dimension names for both the rows and the columns. In using the following code, latex chokes when I include collabel='Vote' but it's fine without it. The code below prouces the latex code further below. I'm confused by this, because it looks