Questions tagged [kableextra]

kableExtra is an R package that helps to build common complex tables (in both HTML and pdf) and manipulate table styles. Using the pipe %>% symbol one can add "layers" to a kable output to get a well-formatted table.

680 questions
0
votes
1 answer

Not showing NAs in knitr::kable output as do xtable

I want to omit NAs in the output of knitr::kable output same as the xtable do (See kable and xtable outputs below). fm12anova <- structure(list(SOV = c("Days", "Residuals"), Df2 = c(1L, 178L ), Sum.Sq2 = c(162702.651909532, 405251.617480465),…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
0
votes
1 answer

Kable group_rows not working

I'm trying to use knitr::kable in order to build a nice-looking table with several levels of grouping. I've been successful with most of my work but I need to define several groups of rows and I thought that the function kableExtra::group_rows was…
G. Vece
  • 133
  • 5
-1
votes
1 answer

How to modify decimal digits only on some kable rows, keeping the comma as decimal separator and point as thousands separator?

I have a table where only some of the numbers should show digits after the decimal. I saw some examples in which formatC was used to convert the format in the dataframe before passing the data to knitr, but that aproach converts the values to…
Natalias
  • 179
  • 6
-1
votes
1 answer

Table reformating

I have this table with two columns, major_activity_area and word_stem. major_activity_area word_stem Youth Development program Youth Development girl Youth Development youth Youth Development school Religion Related Spiritual…
-1
votes
1 answer

Looking for advice on formating Rmarkdown pivot tables

I have some data, example below, where i have used the base package 'table' creating a pivot with three objects. the table, as a list of values, prints how I'd like to see it, but it isn't formatted presentation quality. I'm wanting a pack_row (if…
Barry vT
  • 109
  • 2
1 2 3
45
46