Displaying 2 results from an estimated 2 matches for "tmptabl".
Did you mean:
tmptable
2010 Jun 29
1
Sweave, xtable plus/minus sign
...ta.frame(A = rnorm(18),
B =factor(rep(LETTERS[1:6], each=3)))
myMean <- tapply(df.data1$A, df.data1$B, FUN = mean)
mySD <- tapply(df.data1$A, df.data1$B, FUN = sd)
foo <- matrix(c(myMean, mySD), ncol=2, nrow=6)
colnames(foo) <- c("Mean", "Std.Dev")
tmpTable <- xtable(foo, caption ="Simulated data",
label="tab:four", digits=2)
print(tmpTable, caption.placement="top")
@
\end{document}
Is it possible to insert the plus/minus sign (?) between the two columns ?
I mean within R/Sweave and not in the resulting .tex f...
2005 May 13
5
Conflict between xtable and Hmisc when using Sweave?
Dear R users,
The Sweave code below runs fine, as it is. However, an error occurs when
the line 'library(xtable)' is uncommented:
Error: chunk 1
Error in "label<-"(`*tmp*`, value = "month") :
no applicable method for "label<-"
Is anybody aware of this and knows a workaround?
Thanks,
Sander.
*******************