表格很长——31 列才能容纳整页

表格很长——31 列才能容纳整页

经过几个小时的尝试却毫无成效,我有点绝望了。我有一个 R 的输出,但表格太宽了,有 31 列。有没有办法自动拆分表格?也许可以分成三部分,然后放在一起?非常感谢大家的回答!

编辑:嗨,我在这里放了一些我玩过的代码,但不是很多。原始代码就是其中之一,我可以在 TeXStudio 中编译它而不会出现任何错误:

%latex.default(tstats <- rbind(tstats1, tstats2, tstats3), "tradestats.tex")%
\begin{table}[!tbp]
\begin{center}
\begin{tabular}{lllrrrrrrrrrrrrrrrrrrrrrrrrrrrr}
\hline\hline
\multicolumn{1}{l}{RSI $n=15, (70,30)$}&\multicolumn{1}{c}{Portfolio}&\multicolumn{1}    {c}{Symbol}&\multicolumn{1}{c}{Number of transactions}&\multicolumn{1}{c}{Number of     trades}&\multicolumn{1}{c}{Net Trading Profit Loss}&\multicolumn{1}{c}{Average trade Profit Loss}&\multicolumn{1}{c}{Median trade Profit Loss}&\multicolumn{1}{c}{Largest Winner}&\multicolumn{1}{c}{Largest Loser}&\multicolumn{1}{c}{Gross Profits}&\multicolumn{1}{c}{Gross Losses}&\multicolumn{1}{c}{Standard deviation trade Profit Loss}&\multicolumn{1}{c}{Percent Positive}&\multicolumn{1}{c}{Percent Negative}&\multicolumn{1}{c}{Profit Factor}&\multicolumn{1}{c}{Avgerage Winning Trade}&\multicolumn{1}{c}{Median Winning Trade}&\multicolumn{1}{c}{Avgerage Losing Trade}&\multicolumn{1}{c}{Median Losing Trade}&\multicolumn{1}{c}{Average Daily Profit Loss}&\multicolumn{1}{c}{Median Daily Profit Loss}&\multicolumn{1}{c}{Standard deviation Daily Profit Loss}&\multicolumn{1}{c}{Annual Sharpe ratio}&\multicolumn{1}{c}{Maximal Drawdown}&\multicolumn{1}{c}{Profit To Maximum Drawdown}&\multicolumn{1}{c}{Average Win-Loss ratio}&\multicolumn{1}{c}{Median Win-Loss ratio}&\multicolumn{1}{c}{Maximum Equity}&\multicolumn{1}{c}{Minimal Equity}&\multicolumn{1}{c}{End Equity}\tabularnewline
\hline
RUT&RSI&RUT&$147$&$45$&$-152938$&$-1694.044$&$1501.0$&$25170$&$ -66450$&$188535$&$     -264767$&$15877.4407$&$62.2222$&$37.7777$&$0.7120$&$ 6733.3928$&$ 4334$&$-15574.5294$&$-10703.0$&$-1694.0444$&$1501$&$15877.4407$&$-1.6937$&$-188375$&$-0.8118$&$0.4323$&$0.4049$&$ 1802$&$-186573$&$-152938$\tabularnewline
GSPC&RSI&GSPC&$ 92$&$28$&$-296677$&$-6695.3214$&$7172.5$&$50523$&$ -91993$&$270323$&$ -457792$&$35639.5768$&$64.2857$&$35.7142$&$0.5904$&$15017.9444$&$11708.9999$&$-45779.2$&$-41431.5$&$-6695.3214$&$7172.5$&$35639.5768$&$-2.9822$&$-358495$&$-0.8275$&$0.3280$&$0.2826$&$10614$&$-347881$&$-296677$\tabularnewline
IXIC&RSI&IXIC&$150$&$44$&$-385478$&$-5133.2045$&$9422.5$&$92099$&$-435298.9999$&$924523$&$-1150384$&$91064.1625$&$68.1818$&$31.8181$&$0.8036$&$30817.4333$&$25309.4999$&$-82170.2857$&$-30425.0$&$-5252.5813$&$8319$&$92698.2184$&$-0.8995$&$-888137$&$-0.4340$&$0.3750$&$0.8318$&$11064.9999$&$-877072$&$-385478$\tabularnewline
\hline
\end{tabular}\end{center}

\end{table}

相关内容