Displaying 20 results from an estimated 300 matches similar to: "Hmisc's latex: na.blank and grouping not working as expected"
2006 Oct 28
1
(kein Betreff)
Frank Harrell rote in a message dating from Oct 8th:
> n.group is an argument to latex.default in the Hmisc package
I must admit that I can't find it in the 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,
2007 Feb 06
1
Questions on counts by case
Hi all,
for the data below I would like to
1. generate a dummy variable for each group "gr" of the same composition by
people, then save each portion in a separate file,
2. compute the frequency of "1"'s in "x" for each person by group
"gr". So, "mike" will have freq=2/3, as he has two "1" and one "0" in 3
groups.
2008 Sep 02
2
two lattice graphs in one object
When I create a lattice/Trellis type graph, I typically write a function that returns the graph, as in
do.graph <- function(x, y, ...)
  {
    require(lattice)
    return(xyplot(y~x, ...))
  }
My question today is this: 
If I want two graphs on one page, one way of achieving it is to print the objects into defined areas, as in
gr1 <- xyplot(rnorm(111) ~ runif(111))
gr2 <-
2013 May 24
2
xtable() with booktabs option problem
I could have sworn that yesterday xtable(file, booktabs = TRUE) was giving me toprule , midrule and bottomrule outout. Today :
library(xtable)
 aa  <- table( sample(letters[1:9], 100, replace = TRUE))
  xtable(aa, 
         booktabs = TRUE)
gives me
\begin{table}[ht]
\centering
\begin{tabular}{rr}
  \hline
 & V1 \\ 
  \hline
a &  15 \\ 
  b &  11 \\ 
  c &  13 \\ 
  d & 
2004 Jun 22
3
[LLVMdev] Linearscan allocator bug?
Folks, 
I'm running into something which looks like a bug in linearscan allocator. Of 
course I can't be 100% sure it's not some unobvious mistake on my part, so 
I'd like to hear your opinion.
First, I attach two files -- LLVM asm and the asm for my target. The problem 
with assembler is: on line 171 it uses register gr2, which is copied from gr6 
above, on line 161. The only
2011 May 19
3
problem with optim()
Dear R-users,
 
I would like to maximize the function g above which depends on 4 parameters (2 vectors, 1 real number, and 1 matrix)  using optim() and BFGS method. Here is my code:
 
# fonction to maximize
 
g=function(x)
{
x1 = x[1:ncol(X)]
x2 = x[(ncol(X)+1)]
x3 = matrix(x[(ncol(X)+2):(ncol(X)+1+ncol(X)*ncol(Y))],nrow=ncol(X),ncol=ncol(Y))
x4 = x[(ncol(X)+1+ncol(X)*ncol(Y)+1):length(x)]
2004 Jun 22
0
[LLVMdev] Linearscan allocator bug?
On Tue, 22 Jun 2004, Vladimir Prus wrote:
> First, I attach two files -- LLVM asm and the asm for my target. The problem
> with assembler is: on line 171 it uses register gr2, which is copied from gr6
> above, on line 161. The only predecessor of this basic block is jump on line
> 90. The problem is that gr6 is not initialized in the interval from the
> function entry till the
2004 Nov 16
2
[LLVMdev] Target.td:Register changes
Hi, looking at the fresh CVS state I see:
class Register<string n> : RegisterBase<n> {
  list<RegisterBase> Aliases = [];
}
while previously the Register class did not require any parameters. The change 
log is just:
  * Target.td: Revamp the Register class, and allow the use of the
        RegisterGroup class to specify aliases directly in register
        definitions.
and I
2009 May 07
0
Hmisc::latex() help
Dear R-helpers,
I have a data frame (info[[j]]) that looks like this:
   necklace originalPosition same run surprise1 pair        surprise2  
triple        surprise3
1        1                1    0   2  2.709511   11  
4.81884167930642    110 2.70951129135145
2        1                2    0   2  2.709511   10                 
1    000                1
3        0                3   NA  NA      
2004 Nov 16
0
[LLVMdev] Target.td:Register changes
On Tue, 16 Nov 2004, Vladimir Prus wrote:
> and I could not find any discussions in the archives.
>
> Why the change was necessary? Writing:
>
>   def gr0 : Register<"gr0">;
>   def gr1 : Register<"gr1">;
>   def gr2 : Register<"gr2">;
>   def gr3 : Register<"gr3">;
>   def gr4 :
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),
2012 Dec 16
1
lyx knitr y toLatex
Hola.
Estoy utilizando lyx con el módulo de knitr y tengo un problemilla con 
la función toLatex del paquete memisc.
Pongo un ejemplo mejor.
En Rstudio lo puedo hacer como sigue en un fichero Rnw. y la tabla en el 
pdf aparece alineada en el pdf.
\documentclass{article}
\usepackage{booktabs}
\usepackage{dcolumn}
\begin{document}
<<>>=
library(memisc)
X1 <- rnorm(1000)
X2 <-
2024 May 24
1
dplyr, group_by and selective action according to each group
Dear RHelp-list,
 ?? Using dplyr and the group_by approach on a dataframe, I want to be 
able to apply a specific action according to the group name. The code 
bellow works, but I am not able to write it in a more esthetic way using 
dplyr. Can somebody help me to find a better solution ?
Thank you
Best regards
Laurent
df_test <- data.frame( x1=1:9, x2=1:9,
2012 Feb 07
1
xtable "beta" testing wanted
Dear R-users,
I've enhanced the "xtable" package, adding numerous features that have been requested by users.  The changes are listed below.
The objective throughout has been to avoid any breaking changes.  However, as "xtable" is widely used and is a dependency of many packages I'd like to have others try it out before I post it to CRAN.  Both bug reports and design
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',
2008 Jun 19
5
R web site-Useability & finding varous bits of documentation
I was starting to write a note to a prospective R-user and came to the point of explaining how to get useful introductory information on R. 
After mentioning the Into and the FAQs I went on to try to explain how to use a lot of the contributed information. 
However I realised that there seems to be no direct way to get to Other Publications or Contributed Documenation. 
The best I have seen is
2008 Jun 11
1
Problem when combining dotplot() and textplot() using grid
Hi everyone.
I want to solve the following problem. I have a data.frame and I
create a dotplot using lattice.
Then I want to use the grid-package to create a combined graphic which
contains the dotplot as well as a textplot() (using package gplots) of
the data.frame next to the dotplot.
Example code:
library(lattice)
library(grid)
library(gplots)
xx <- data.frame(f=factor(rep(1:5, each=5)),
2009 Apr 08
1
Sweave problem, with multicolumn tables from R to LaTeX
Hi there,
I have been using the example provided bellow for a while, and It was 
working without any problem. Nevertheless, just since 2-3 days is not 
working, probably because I did update.packages(). I have tried to 
re-install the older versions of the packages Hmisc() and xtable(), but 
still does not work. Can you run this example, and tell me if you got 
the same problems?
I use
2024 May 24
1
dplyr, group_by and selective action according to each group
Laurent:
As I don't use dplyr, this won't help you, but I hope you and others may
find it entertaining anyway.
If I understand you correctly (and ignore this if I have not), there are a
ton of ways to do this in base R, including using switch() along the lines
you noted in your post. However, when the functions get sufficiently
complicated or numerous, it may be useful to store them in a
2015 Jun 09
3
Tablas con tabular en latex
Buenos días,
estoy tratando de encontrar la manera de generar tablas en ficheros pdf
(sweave) a través del paquete tables. He mirado que este tema esta activo
en las listas pero no logro localizar las respuestas antes dadas, por eso
lanzo esta consulta.
Mi fichero .rnw tiene el siguiente aspecto:
*******
\documentclass{article}
\usepackage{array,booktabs,caption}
\begin{document}