-
Notifications
You must be signed in to change notification settings - Fork 0
/
03_knit_me.Rmd
71 lines (54 loc) · 1.87 KB
/
03_knit_me.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: "Summary of data processing"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(htmltools)
dfs <- readRDS("dataframes.RDS")
```
### Input Dataframes:
Here is a brief description of the input dataframes (column names, data type, number of unique values and 10 example values).
```{r, echo=FALSE, results='asis'}
print_kable <- function(names, tbbl){
cat(HTML(paste0("<h6> Input ",names,"</h6>")))
tbbl%>%
knitr::kable(escape = TRUE)%>%
kableExtra::kable_styling("striped", position = "left", font_size = 7, full_width=FALSE)%>%
print()
}
input_list <- dfs%>%
filter(df_names %in% c("jo_raw",
"employment_raw",
"ds_raw",
"noc_mapping",
"industry_mapping",
"typical_education",
"wages",
"interests",
"new_supply"))%>%
deframe()
walk2(names(input_list), input_list, print_kable)
```
### Output dataframe summaries:
Here is a brief description of the output dataframes (column names, data type, number of unique values and 10 example values.)
```{r, echo=FALSE, results='asis'}
print_kable <- function(names, tbbl){
cat(HTML(paste0("<h6> Output ",names,"</h6>")))
tbbl%>%
knitr::kable(escape = TRUE)%>%
kableExtra::kable_styling("striped", position = "left", font_size = 7, full_width=FALSE)%>%
print()
}
out_list <- dfs%>%
filter(df_names %in% c("ds_and_jo",
"ds_and_jo_tab",
"regional",
"industry_outlook",
"occupation_outlook",
"occupation_outlook_table",
"jo_500"))%>%
deframe()
walk2(names(out_list), out_list, print_kable)
```