Convert kable table in R to Latex source code

59 views Asked by At

I made a relatively simple table in R using kable, which outputs the actual table. I would like to get the Latex source code so that I can add it to an overleaf document (as required for journal submission).

I have tried specifying format= 'latex' as suggested in other posts, but nothing appears in the console when I run this line of code.

    Table 3<-kbl(Table3Data) %>%
      row_spec(0, bold = T) %>%
      kable_classic(html_font ="times")%>%
      pack_rows("Decision Tree",1, 2) %>%
      pack_rows("Boosted Tree ",3, 4)%>%
      add_header_above(c(" "=1, "Observation level performance"=6))

    print(Table3)

    kable(Table3, format = "latex")
0

There are 0 answers