-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path61_show_metadata.Rmd
42 lines (34 loc) · 1.09 KB
/
61_show_metadata.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
output:
rmdformats::material:
use_bookdown: true
thumbnails: false
df_print: kable
code_folding: hide
number_sections: yes
---
# Analysis reproducibility
## Analysis parameters
```{r show-params}
library(kableExtra)
ul <- unlist(parameters_list)
df <- data.frame(keyName=names(ul), value=ul, row.names=NULL)
names(df) <- c('Parameters', 'Values')
# découpage du dataframe df en 3 pour générer 3 colonnes à l'affichage
df1 <- df[1:ceiling(dim(df)[1]/3),]
df2 <- df[(ceiling(dim(df)[1]/3)+1):(2*ceiling(dim(df)[1]/3)),]
df3 <- df[((2*ceiling(dim(df)[1]/3))+1):dim(df)[1],]
# make the Parameters being bold
df1$Parameters <- cell_spec(df1$Parameters, bold = T)
df2$Parameters <- cell_spec(df2$Parameters, bold = T)
df3$Parameters <- cell_spec(df3$Parameters, bold = T)
# combine the dataframes into a single table
list(df1, df2, df3) %>%
knitr::kable(align = "ll", row.names = FALSE, escape = F) %>%
kable_styling(bootstrap_options = c("striped", "hover"),
full_width = FALSE)
```
## R Session info
```{r sessionInfo}
sessionInfo()
```