2014-02-12 1 views
6

실무실에서 notes을 페이지를 벗어나는 대신 줄 바꿈하는 방법이 있습니까?몽상가는 줄 바꿈을 기록합니까?

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] 
\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} 

내가 이것을 조정 설명서에서 아무것도 찾을 수 없습니다.

+5

빠른 수정은 다음과 같은 형태의'parbox'를 사용하는 것입니다 :'notes = "\\ parbox [t] {10cm} 모델을 조정하면 수동으로 변경해야 할 수도 있습니다. – Bryan

답변

9

notes 인수는 문자열의 벡터를 받아 들여 각각을 새로운 줄에 넣습니다. 귀하의 예제에서 다음과 같이 작동해야합니다 :

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

향후 버전의 실습가가 위의 브라이언의 설명에 따라 벡터의 모든 요소를 ​​자체 파블 박스에 넣는 것이 좋을 것입니다. 수동으로 줄을 깨는 것은 적어도 우아하지 않게 보입니다. – RoyalTS

+4

감사합니다. – Marek