Displaying 9 results from an estimated 9 matches for "tabularnewlin".
Did you mean:
tabularnewline
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
...= extracolheads, extracolsize = Nsize, ...)
%
\begin{table}[!tbp]
\caption{Descriptive Statistics by treatment\label{g}}
\begin{center}
\begin{tabular}{lccc}\hline\hline
\multicolumn{1}{l}{}&\multicolumn{1}{c}{Drug}&\multicolumn{1}{c}{Placebo}&\multicolumn{1}{c}{Test
Statistic}\tabularnewline
&\multicolumn{1}{c}{{\scriptsize
$N=263$}}&\multicolumn{1}{c}{{\scriptsize $N=237$}}&\tabularnewline
\hline
age&1&1&4\tabularnewline
sex~:~m&6&7&2\tabularnewline
symptom1~:~Depressed&4&3&3\tabularnewline
~~~~Hangnail&5&6&1\tabularnewline...
2010 Dec 30
1
latex() etc.: How to nicely format a matrix for a LaTeX document?
...100,10000,4), ncol = 3, byrow = TRUE)
latex(mat, file = "", booktabs = TRUE, numeric.dollar = FALSE, table.env = FALSE)
I am only interested in the part between \midrule and \bottomrule [I couldn't figure out how to remove the tabular environment]. It looks like this:
1&&3\tabularnewline
100&10000&4\tabularnewline
My questions/problems are:
(1) if there are NA's, you can see that the output is not aligned according to the &-symbols. That makes it hard to read in a LaTeX *source* file. How can I get something like:
1& &3\tabularnewline
100&10000&...
2009 Apr 23
0
latex(Hmisc): cgroup + rownames shifts column names
...e = "", table.env = FALSE, center = "none") %
\begin{tabular}{lrrr}
\hline\hline
%% Comment added by ME -- this next line is the one that is fine without cgroup
\multicolumn{1}{l}{test.df}& \multicolumn{1}{c}{col1}&
\multicolumn{1}{c}{col2}& \multicolumn{1}{c}{col3} \tabularnewline
\hline a&$1$&$4$&$4$\tabularnewline
b&$2$&$3$&$5$\tabularnewline
c&$3$&$2$&$6$\tabularnewline
d&$4$&$1$&$7$\tabularnewline
\hline
\end{tabular}
latex(test.df, file="", n.cgroup=c(1,2), cgroup=c("","95\\% Conf. Limits"),...
2010 Mar 08
0
page boundaries for latex printing of summary.formula objects in Hmisc
...X code to the screen, not a file
latex(sf, file = "", longtable = TRUE)
Notice how the LaTeX output puts the newline in the middle of factor 4,
instead of before or after.
<excerpt of LaTeX ouput follows>
fac4~:~V4~Level~1&11\%~{\scriptsize~(59)}&~7\%~{\scriptsize~(41)}\tabularnewline
~~~~V4~Level~2&10\%~{\scriptsize~(56)}&~8\%~{\scriptsize~(44)}\tabularnewline
~~~~V4~Level~3&~9\%~{\scriptsize~(47)}&10\%~{\scriptsize~(53)}\tabularnewline
~~~~V4~Level~4&~9\%~{\scriptsize~(49)}&~9\%~{\scriptsize~(51)}\tabularnewline
~~~~V4~Level~5&~9\%~{\scriptsize~(51...
2009 May 07
0
Hmisc::latex() help
...mp;\multicolumn{1}{c}{originalPosition}&
\multicolumn{1}{c}{same}&\multicolumn{1}{c}{run}&\multicolumn{1}{c}
{surprise1}&\multicolumn{1}{c}{pair}&\multicolumn{1}{c}{surprise2}&
\multicolumn{1}{c}{triple}&\multicolumn{1}{c}{surprise3}&
\multicolumn{1}{c}{necklace}\tabularnewline
\midrule
1&1&1&~0&~2&2.71&11&4.81884167930642&110&2.70951129135145\tabularnewline
2&1&2&~0&~2&2.71&10&1&000&1\tabularnewline
3&0&3&&&&00&NA&001&NA\tabularnewline
4&0&4&&&...
2010 Jul 13
1
latex table question
...\begin{tabular}{llllll}\hline\hline
\multicolumn{1}{c}{IDDate}&
\multicolumn{1}{c}{First Run of the Year}&
\multicolumn{1}{c}{Second Run of the Year}&
\multicolumn{1}{c}{Third Run of the Year}&
\multicolumn{1}{c}{Fourth Run of the Year}&
\multicolumn{1}{c}{Last Run of the Year}\tabularnewline
\hline
1&3/12/2010&33 (119 ? 119)&33 (71 ? 71)&890 (32 ? 47)&0 ( ? )&0 ( ?
)\tabularnewline
2&3/13/2010&n (0 ? 0)&n (0 ? 0)&n (0 ? 0)&n (0 ? 0)&n (0 ? 0)\tabularnewline
3&3/14/2010&893 (110 ? 146)&337 (67 ? 74)&10,602 (32 ? 52)&0...
2013 Mar 15
2
latex(test, collabel=) returns wrong latex code?
...collabel='Vote', file='')
% latex.default(test, rowlabel = "Gender", collabel = "vote", file = "")
%
\begin{table}[!tbp]
\begin{center}
\begin{tabular}{lrr}
\hline\hline
\multicolumn{1}{l}{Gender}&\multicolumn{1}{vote}{A}&\multicolumn{1}{l}{B}\tabularnewline
\hline
A&$50$&$50$\tabularnewline
B&$50$&$50$\tabularnewline
\hline
\end{tabular}
\end{center}
\end{table}
*********************************
Simon J. Kiss, PhD
Assistant Professor, Wilfrid Laurier University
73 George Street
Brantford, Ontario, Canada
N3T 2C9
Cell: +1 905 746 7606...
2009 Oct 02
1
trouble with html() in Hmisc
...ummy example:
> require(Hmisc)
> data(Angell)
> .object <- cor(Angell[,1:2], use="complete.obs")
> tmp <- latex(.object, cdec=c(2,2), title="")
> class(tmp)
[1] "latex"
> html(tmp)
/tmp/RtmprfPwzw/file7e72f7a7.tex:9: Warning: Command not found: \tabularnewline
Giving up command: \@hevea at amper
/tmp/RtmprfPwzw/file7e72f7a7.tex:11: Error while reading LaTeX:
This array/tabular column has no specification
Adios
I have hevea-1.10 installed on Debian (according to the help page, it
performs the conversion). Attached is teh produced .tex file. Is this
a...
2010 Dec 07
1
latex() hangs R console
...','d','this
that')))
> latex(x, file="")
% latex.default(x, file = "")
%
\begin{table}[!tbp]
\begin{center}
\begin{tabular}{lrrr}\hline\hline
\multicolumn{1}{l}{x}&\multicolumn{1}{c}{c}&\multicolumn{1}{c}{d}&\multicolumn{1}{c}{this
that}\tabularnewline
\hline
a&$1$&$3$&$5$\tabularnewline
b&$2$&$4$&$6$\tabularnewline
\hline
\end{tabular}
\end{center}
\end{table}
> cd("c:/r/test")
> latex(x)
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(C:/WINDOWS/TEMP/Rtmpz0QkT8/file311f28...