Stargazer marks line ending?

Is there a way to get notes in stargazer for wrapping strings, and not for starting a 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?") 

What 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 could not find anything in the manual to configure it.

+7
r latex stargazer
source share
1 answer

The notes argument takes a vector of character strings and puts 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?")) 
+9
source share

All Articles