我正在尝试为我正在使用 stargazer 撰写的论文制作几张表格,但每张表格都会显示“表格 1:”,然后是我想要的标题。有没有办法让它不打印,或者至少改变表号?
编辑:包的名称是 stargazer,如上所述。这不是特定数据框或回归的问题,而是我尝试创建的任何观星表。这是给我带来麻烦的代码-表格的标题打印为“表格1:表格1:州内冲突中发生的战斗死亡人数(%)”
\begin{table}[htb] \centering
\caption{Table 1: Share of battle deaths that occurred in intrastate conflicts (\%)}
\label{}
\footnotesize
\begin{tabular}{@{\extracolsep{5pt}} c c }
\\[-1.8ex]\hline
\hline \\[-1.8ex]
Years & Intrastate.conflict.battle.deaths \\
\hline \\[-1.8ex]
1950s & $8$ \\
1960s & $29$ \\
1970s & $43$ \\
1980s & $67$ \\
1990s & $92$ \\
2000-2002 & $93$ \\
\hline \\[-1.8ex]
\normalsize
\end{tabular}
\end{table}
编辑编辑:对不起,我是新手,我现在意识到你所说的代码是什么意思。
stargazer(battle_deaths, title = "Table 1: Share of battle deaths that occurred in intrastate conflicts (\%)", summary = FALSE, notes = "Source: Lacina and Gleiditsch 2005")