Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfSummary and knitr::kable () #169

Open
MAGALLANESJoseManuel opened this issue Aug 22, 2022 · 1 comment
Open

dfSummary and knitr::kable () #169

MAGALLANESJoseManuel opened this issue Aug 22, 2022 · 1 comment

Comments

@MAGALLANESJoseManuel
Copy link

DfSummary connect well with kable here:
dfSummary(pavi[,-1],
plain.ascii = FALSE,
varnumbers = FALSE,
style = "grid",
graph.col=FALSE,
na.col = FALSE) %>%kable(caption = "Summary Table")

But, if I set graph.col=TRUE, you see GRAPH as ASCII and some html before it:

image

Can this be solved?

@dcomtois
Copy link
Owner

Hmmm I don't have an easy solution for this, as this is the intended behavior (and works all right when kable is not used). A work-around could be to manually remove the "Graph" column and rename the "text.graph" column to "Graph". If you can try it and let me know how it goes, that would be appreciated. Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants