안녕하세요. 교수님. moonBook , mycor, ztable 패키지 잘 쓰고 있는 사용자입니다.
R studio에서 ztable을 실행시키면 미리보기 실행창에서는 뜨지 않고 크롬으로 테이블이 바로 떠 버립니다.
근데 전 R markdown에서 실행했을 때 뜨는 실행창 안에서 차례대로 table이 나오기를 원하는데 이럴 경우 어떻게 옵션을 설정해야할지
알려주시면 감사하겠습니다.
감사합니다.
Comment 2
-
cardiomoon
2019.04.03 22:11
-
eyedoc광현
2019.04.25 10:16
교수님 답변 확인이 많이 늦어서 이 답변을 보실지 모르겠습니다.
말씀하신대로 하니
<head><style> table { font-family: times ; color: black ; text-align: right;} th { padding: 1px 1px 5px 5px; } td { padding: 1px 1px 5px 5px; } </style></head><table align="center" style="border-collapse: collapse; caption-side:top; font-size:11pt;"><caption style="text-align:center;"></caption><tr> <th style="border-left: 0px solid black;background-color: #FFFFFF;border-top: 2px solid gray;border-bottom: 1px solid gray;"> </th> <th <th align="center" style="font-weight: normal;border-left: 0px solid black;border-bottom: 1px solid gray;border-top: 2px solid gray;">Estimate</th> <th <th align="center" style="font-weight: normal;border-left: 0px solid black;border-bottom: 1px solid gray;border-top: 2px solid gray;">Std. Error</th> <th <th align="center" style="font-weight: normal;border-left: 0px solid black;border-bottom: 1px solid gray;border-top: 2px solid gray;">t value</th> <th <th align="center" style="font-weight: normal;border-left: 0px solid black;border-right:0px solid black;border-bottom: 1px solid gray;border-top: 2px solid gray;">Pr(>|t|)</th> </tr> <tr> <td style="border-left: 0px solid black; ">(Intercept)</td> <td align="right" style="border-left: 0px solid black;">9.8044</td> <td align="right" style="border-left: 0px solid black;">9.2837</td> <td align="right" style="border-left: 0px solid black;">1.06</td> <td align="right" style="border-left: 0px solid black;border-right:0px solid black;">0.2960</td> </tr> <tr> <td style="border-left: 0px solid black; border-top: hidden;">age</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">-0.0285</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">0.0102</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">-2.79</td> <td align="right" style="border-left: 0px solid black;border-right:0px solid black;border-top: hidden;">0.0074</td> </tr> <tr> <td style="border-left: 0px solid black; border-top: hidden;">ss1</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">1.2780</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">0.1419</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">9.01</td> <td align="right" style="border-left: 0px solid black;border-right:0px solid black;border-top: hidden;">< 0.0001</td> </tr> <tr> <td style="border-left: 0px solid black; border-top: hidden;">VFI</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">-0.0295</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">0.0948</td> <td align="right" style="border-left: 0px solid black;border-top: hidden;">-0.31</td> <td align="right" style="border-left: 0px solid black;border-right:0px solid black;border-top: hidden;">0.7574</td> </tr> <tr> <td colspan="5" align="left" style="font-size:9pt ;border-top: 1px solid black; border-bottom: hidden;">Call: lm(formula = MFV ~ age + ss1 + VFI, data = subset(DF, DF$SEVERITY == </td> <td colspan="5" align="left" style="font-size:9pt ;border-top: 1px solid black; border-bottom: hidden;">Call: 0))</td> </tr> </table>
이런식으로 출력이 됩니다. 어떻게 option을 바꿔야할까요?
감사합니다.
No. | Subject | Author | Date |
---|---|---|---|
1254 | 생존분석 [1] | toby | 2015.04.29 |
1253 | RStudio v0.99 Preview: Code Diagnostics [1] | fermat39 | 2015.04.30 |
1252 | Rstudio 사용법` [3] | 방랑자 | 2015.05.02 |
1251 | need finite 'xlim' values [3] | anthleemd | 2015.05.02 |
1250 | 샤이니 앱에서 SQL 명령어 사용 방법 [2] | 김브링이 | 2015.05.06 |
1249 | 표만들기 관련 [2] | 현승협 | 2015.05.07 |
1248 | MS word문서 저장관련 [1] | 아자 | 2015.05.09 |
1247 | R서버 설치 문의드립니다. [4] | 화모기 | 2015.05.13 |
1246 | 웹에서 하는 R통계 - R코드 [2] | 김영진 | 2015.06.07 |
1245 | Plot inset 만들기 | cardiomoon | 2015.06.09 |
1244 | 오류 질문 - 표작성시 [1] | 미소천사 | 2015.06.15 |
1243 | 오류 질문 - PDF 변환 안되는 file입니다. [1] | 미소천사 | 2015.06.15 |
1242 | print ztable [1] | 김영진 | 2015.06.17 |
1241 | 표 작성시 질문 [1] | simsim | 2015.06.17 |
1240 | 나무 분석 질문입니다. | 미소천사 | 2015.06.19 |
1239 | Interactive ggplot2 [2] | cardiomoon | 2015.06.22 |
1238 | Rstudio server 서버 오류 관련해서 문의드립니다. [2] | 노상래 | 2015.07.22 |
1237 | Rstudio server 무한 로딩 관련해서 문의 드립니다. [6] | 노상래 | 2015.07.24 |
1236 | http://www.r-statistics.com/ 번역소식 [1] | fermat39 | 2015.07.25 |
1235 | 생존분석 변수선택 [3] | nash | 2015.08.11 |
안녕하세요? 문건웅입니다
Rmd파일에서 ztable을 쓰실 때는 html 파일인지 pdf출력인지에 따라 다르지만 먼저 R 코드 청크에
```{r. results='asis'}
z=ztable(head(iris))
print(z,type="html") # pdf인 경우 type="latex"
```
와 같이 하시면 됩니다.