Stargazer 注意到换行符? [英] Stargazer notes line wrap?

查看:17
本文介绍了Stargazer 注意到换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让 notes 在 stargazer 中换行而不是离开页面?

Is there a way to get notes in stargazer to wrap lines instead of running off the page?

stargazer(fit.1, notes="A very very long note that I would like to put below the table, but currently runs off the side of the page when I compile my document. How do I get this to wrap into paragraph form?")

产生:

hline \[-1.8ex] 
	extit{Notes:} & multicolumn{2}{l}{$^{*}$P $<$ .05} \ 
 & multicolumn{2}{l}{$^{**}$P $<$ .01} \ 
 & multicolumn{2}{l}{$^{***}$P $<$ .001} \ 
 & multicolumn{2}{l}{A very very long note that I would like to put below the table, but currently runs off the side of the page when I compile my document. How do I get this to wrap into paragraph form?} \ 

ormalsize 
end{tabular} 
end{table} 

我在手册中找不到任何调整它的内容.

I couldn't find anything in the manual for adjusting this.

推荐答案

notes 参数接受一个字符串向量,并将每个字符串放在一个新行上.在您的示例中,以下内容应该有效:

The notes argument accepts a vector of character strings, and will put each on a new line. In your example, the following should work:

stargazer(linear.1, notes=c("A very very long note that I would like to put below the table,",
                     "but currently runs off the side of the page",
                     "when I compile my document.",
                     "How do I get this to wrap into paragraph form?"))

这篇关于Stargazer 注意到换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆