|
| 1 | +C_pools_table <- read.csv("figures_tables/C_pools.csv") |
| 2 | +names(C_pools_table) <- stringr::str_replace_all(names(C_pools_table), "\\.", " ") |
| 3 | +library(knitr) |
| 4 | +library(kableExtra) |
| 5 | +knitr::kable(C_pools_table, format = "latex", |
| 6 | +longtable = FALSE, |
| 7 | +caption = "\\textbf{Variables with definitions and measurement methods.} Definitions from IPCC Table 1.1. (See Table 1.1 in IPCC guidance).") %>% |
| 8 | +kableExtra::kable_styling(full_width = TRUE) %>% |
| 9 | +row_spec(0, bold = TRUE) |
| 10 | +#this is for a two-column figure. for one-column figure, use {r, out.width = "8.3cm", echo = FALSE, fig.cap = "one column figure"} |
| 11 | +knitr::include_graphics("figures_tables/C_variable_mapping.png") |
| 12 | +library(knitr) |
| 13 | +library(kableExtra) |
| 14 | +ForC_variables_included <- read.csv("figures_tables/ForC_variables_included.csv") |
| 15 | +names(ForC_variables_included) <- stringr::str_replace_all(names(ForC_variables_included), "\\.", " ") |
| 16 | +ForC_variables_included <- ForC_variables_included[c(1:5)] #include all fields but TO_DO |
| 17 | +knitr::kable(ForC_variables_included, format = "latex", |
| 18 | +longtable = TRUE, |
| 19 | +caption = "\\textbf{Mapping of ForC fields to EFDB.} See footnotes at end of table (still need to be properly inserted). ") %>% |
| 20 | +row_spec(0, bold = TRUE) %>% |
| 21 | +kableExtra::kable_styling(full_width = TRUE, latex_options = c("repeat_header", "hold position")) |
| 22 | +library (readr) |
| 23 | +urlfile="https://raw.githubusercontent.com/forc-db/ForC/master/database_management_records/record_of_changes.csv" |
| 24 | +record_of_changes <-read_csv(url(urlfile)) |
| 25 | +names(record_of_changes) <- stringr::str_replace_all(names(record_of_changes), "\\.", " ") |
| 26 | +record_of_changes <- record_of_changes[c(1:5)] #include all fields but date of change |
| 27 | +#record_of_changes<- record_of_changes[which(!grep("housekeeping",record_of_changes$Motivation)) , c(1:5)] #trying to exclude rows for which Motivation = "housekeeping", but this is not working |
| 28 | +record_of_changes[is.na(record_of_changes)]<- "" #replace NAs with blanks |
| 29 | +library(knitr) |
| 30 | +library(kableExtra) |
| 31 | +knitr::kable(record_of_changes, format = "latex", |
| 32 | +longtable = TRUE, |
| 33 | +caption = "\\textbf{Table of changes to ForC fields.}") %>% |
| 34 | +kableExtra::kable_styling(full_width = TRUE, latex_options = c("repeat_header")) %>% |
| 35 | +row_spec(0, bold = TRUE) |
| 36 | +tinytex::install_tinytex() |
| 37 | +tinytex::install_tinytex() |
| 38 | +(Table \@ref(table_variables) |
| 39 | +C_pools_table <- read.csv("figures_tables/C_pools.csv") |
| 40 | +names(C_pools_table) <- stringr::str_replace_all(names(C_pools_table), "\\.", " ") |
| 41 | +library(knitr) |
| 42 | +library(kableExtra) |
| 43 | +knitr::kable(C_pools_table, format = "latex", |
| 44 | +longtable = FALSE, |
| 45 | +caption = "\\textbf{Variables with definitions and measurement methods.} Definitions from IPCC Table 1.1. (See Table 1.1 in IPCC guidance).") %>% |
| 46 | +kableExtra::kable_styling(full_width = TRUE) %>% |
| 47 | +row_spec(0, bold = TRUE) |
0 commit comments