Hi,
I have a df like this:
and the code:
library(gtsummary)
library(knitr)
library(kableExtra)
table_html <- data4 %>%
tbl_summary() %>%
as_kable()
Instead of getting nice table in Viewer pane I got html code in console:
<table>
<thead>
<tr>
<th style="text-align:left;"> **Characteristic** </th>
<th style="text-align:center;"> **N = 5,381** </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;"> Likert </td>
<td style="text-align:center;"> </td>
</tr>
<tr>
How to rectify this ?