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?")
Which produces:
\hline \\[-1.8ex]
\textit{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?} \\
\normalsize
\end{tabular}
\end{table}
I couldn't find anything in the manual for adjusting this.
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?"))
来源:https://stackoverflow.com/questions/21720264/stargazer-notes-line-wrap