Skip to content
Snippets Groups Projects
Commit 4784dbf4 authored by Ingram Jaccard's avatar Ingram Jaccard
Browse files

edit si-test

parent 12c73305
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
,jaccard,jaccard-Latitude-E6440,19.01.2021 07:36,file:///home/jaccard/.config/libreoffice/4;
\ No newline at end of file
...@@ -34,7 +34,8 @@ pacman::p_load(tidyverse, ...@@ -34,7 +34,8 @@ pacman::p_load(tidyverse,
glue, glue,
ggridges, ggridges,
patchwork, patchwork,
kableExtra) kableExtra,
flextable)
pal <- wes_palette("Cavalcanti1", 5, type = "discrete") pal <- wes_palette("Cavalcanti1", 5, type = "discrete")
extrafont::loadfonts() extrafont::loadfonts()
...@@ -148,18 +149,22 @@ hbs = data.frame(quintile, pps_hh, pm_sector1, pm_sector2) %>% ...@@ -148,18 +149,22 @@ hbs = data.frame(quintile, pps_hh, pm_sector1, pm_sector2) %>%
pps_hh_sector2 = pps_hh*(pm_sector2/1000), pps_hh_sector2 = pps_hh*(pm_sector2/1000),
sector_2_shares = pps_hh_sector2/sum(pps_hh_sector2)) sector_2_shares = pps_hh_sector2/sum(pps_hh_sector2))
knitr::kable(hbs, caption = "Table S1: HBS structure with calculations of quintile shares per sector.", #knitr::kable(hbs, caption = "Table S1: HBS structure with calculations of quintile shares per sector.",
escape = F, # escape = F,
booktabs = TRUE, # booktabs = TRUE,
col.names = c("quintile", # col.names = c("quintile",
"pps hh", # "pps hh",
"s1 (pm)", # "s1 (pm)",
"s2 (pm)", # "s2 (pm)",
"s1 (pps hh)", # "s1 (pps hh)",
"s1 (q share)", # "s1 (q share)",
"s2 (pps hh)", # "s2 (pps hh)",
"s2 (q share)")) %>% # "s2 (q share)")) %>%
kable_styling(latex_options = "HOLD_position") # kable_styling(latex_options = "HOLD_position")
regulartable(hbs) %>%
autofit() %>%
fit_to_width(7.5)
``` ```
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment