1
我有以下代码和print.xtableFtable忽略乳胶的附加选项。为什么R函数print.xtableFtable忽略我的选项?
##### Contingency tables - 34Y
library(xtable)
B <- ftable(prereg34Y_sub$employmentStatus34Y, prereg34Y_sub$ethnicity34Y, dnn=c("Unemployed", "NonBritish"))
sink("CTFemaleNonBrit34Y.tex", type="output")
print.xtableFtable(xtableFtable(B, method = "compact"), table.placement = "h!")
sink()
的输出是:
% latex table generated in R 3.3.1 by xtable 1.8-2 package
% Sat Oct 22 18:08:35 2016
\begin{table}[ht]
\centering
\begin{tabular}{l |rr}
\hline
Unemployed $\vert$ NonBritish & \multicolumn{1}{l}{ 0} & \multicolumn{1}{l}{ 1} \\
\hline
0 & 2065 & 68 \\
1 & 31 & 2 \\
\hline
\end{tabular}
\end{table}
表中的位置被HT代替ħ!有没有人有一个想法,为什么?
它现在有效。我今天学到了一些新东西:全球设置选项。 – FarFarAway
非常感谢! – FarFarAway
非常欢迎 – user20650