在山墙中创建表格,并在脚注中添加特殊字符

时间:2020-06-15 07:13:27

标签: r kable

我在R Markdown中遇到以下问题。我正在尝试在脚注中使用特殊字符的有线表中创建表格。

\begin{landscape}
{r, echo=FALSE}
m <- fread("/Users/Kati/Documents/TALMA/CZ/Drafts/m_table", select= c(3:7), header = T)
m <- m[complete.cases(m)]
kable(m, "latex", caption = "Probit marginal effects by provider type", booktabs = T) %>%
  kable_styling(latex_options=c("scale_down", "hold_position")) %>%
  collapse_rows(columns=1) %>% 
  footnote(number=c("Standard errors in parenthesis. P-values in brackets.",
                       "P-values from Wald-test for $H_0$ : Hazard-ratio = $\frac{Hazard-rate_{{_Weak/Strong}}}{Hazard-rate{_{_Average}}}$ = 1" ), escape = FALSE )
\end{landscape}

我收到以下错误消息。

Error in footnote(., number = c("Standard errors in parenthesis. P-values in brackets.",  : 
  unused arguments (number = c("Standard errors in parenthesis. P-values in brackets.", "P-values from Wald-test for $H_0$ : Hazard-ratio = $\frac{Hazard-rate_{{_Weak/Strong}}}{Hazard-rate{_{_Average}}}$ = 1"), escape = FALSE)
Calls: <Anonymous> ... _fseq -> freduce -> withVisible -> <Anonymous> -> footnote
Execution halted

我在做什么错了?

0 个答案:

没有答案