Rmarkdown : can we merge two cells with kableExtra?
Is there a way to merge two cells with kableExtra when knitting from Rmarkdown to HTML?bbb = 5aaa = data.frame(matrix(c(1,2,3,4, paste(bbb),""), nrow = 2, byrow = T))aaaI want the value bbb (the value...
View ArticleHow to remove automatic table labels when using kable and bookdown for HTML
I am creating a bookdown project which includes kable tables. The final output is HTML. However, I do not want the automatic "Table 1:" labels and instead want only my custom caption I create in my...
View ArticleHow to format number of digits with kable
I want to format x and y using 3 digits: e.g. for x I want to obtain 0.035, 0.790, 0.453.I tried using the following, without success:---title: "format 3 digits"output: word_document: default---```{r...
View ArticleHow to create a print table with different types of data in it?
Here is my problemI have this sample data.frame:Name=c("a","b","c","d")Value=c(12.3,10.5,2.6,1.2)Label=c("label1","label2","label3","label4")df=data.frame(Name,Value,Label)I want to create a table only...
View ArticleRemove column name row in kable while using kable_styling
I'm trying to make a table without row names using kable, and I'm having an issue suppressing the line where column names go, but only if I'm using kable_styling (which I'm using to left-align the...
View Articlelost label inside the data when using Kable and for loop function
test1 <- structure(list(weight = c(0.2158, 0.799, 0.611, 0.4969, 0.3469, 1.0107, 0.6946, 0.9415, 1.4008, 0.6192), Q2_1 = structure(c(4, 4, 2, 2, 3, 3, 3, 2, 3, 2), label = "How worried, if at all,...
View ArticleHow do I get ride of the gap in table footnote generated by kable in r markdown?
As you can see from the pic below. There is a gap between the note and the context. The code I used is below. Any ideas to get rid of the gap?kable(summarize(df.sum, group = "Experiment", test = T,...
View ArticleChanging Background color of header and put stripped gray scale to rows kable
is there any way to change the header column and put the rows in grays (stripped style) by extending the following code?library(ReporteRs)x = structure(c(34L, 6L, 9L, 35L), .Dim = c(2L, 2L), .Dimnames...
View ArticleHow to create a blocked hanging indent report format in R (preferably using gt)
I want to report data in R using the display format like an MS Access block grouped report, that is, where the data that is duplicated on the subsequent lines of a group is...
View ArticleHow to print formatted (kable) tables from a list of dataframes?
I have a list composed of dataframes, and I want to print each list element as a knitr table on my Rmarkdown file. However, I need to format the cells on each dataframe before passing them to...
View ArticleHow to compare values across two dataframes
I am building a crime report in R and am comparing two separate dataframes, one from the current year and one from the previous year. The data structure is the same in both. Is there a way to color the...
View Article