Skip to content
Snippets Groups Projects
Commit 980189a7 authored by Ben Anderson's avatar Ben Anderson
Browse files

knitted to pdf

parent 4b1e3b18
No related branches found
No related tags found
No related merge requests found
Showing
with 1972 additions and 11 deletions
......@@ -4,24 +4,24 @@ subtitle: 'Code and notes'
author: "Ben Anderson (b.anderson@soton.ac.uk), [SERG, Energy & Climate Change](http://www.energy.soton.ac.uk/), University of Southampton"
date: 'Last run at: `r Sys.time()`'
output:
bookdown::html_document2:
code_folding: hide
bookdown::pdf_document2:
fig_caption: yes
keep_tex: yes
number_sections: yes
self_contained: yes
toc: yes
toc_depth: 3
toc_float: yes
toc_depth: 2
bookdown::word_document2:
fig_caption: yes
toc: yes
toc_depth: 2
bookdown::pdf_document2:
bookdown::html_document2:
code_folding: hide
fig_caption: yes
keep_tex: yes
number_sections: yes
self_contained: yes
toc: yes
toc_depth: 2
toc_depth: 3
toc_float: yes
always_allow_html: yes
bibliography: '`r path.expand("~/bibliography.bib")`'
---
......@@ -94,7 +94,7 @@ head(dt)
Do some data prep
```{r skimIt}
```{r dataSummary}
dt[, rDateTime := lubridate::as_datetime(DateTime)]
dt[, rTime := hms::as_hms(rDateTime)]
......@@ -105,7 +105,11 @@ dt[, kW := Value] # for clarity
dt[, Value := NULL] #drop
dt <- addSeason(dt, dateVar = "rDate", h = "N")
skimr::skim(dt)
#skimr::skim(dt) doesn't play nicely with latex
st <- summary(dt[,.(rYear, rDateTime, sub_region, kW, rDoW, season)])
kableExtra::kable(st,
caption = "Summary of loaded and processed data") %>%
kable_styling()
```
Do a sense check by season & feeder.
......@@ -241,7 +245,6 @@ Analysis completed in `r round(elapsed,2)` seconds ( `r round(elapsed/60,2)` min
* lubridate [@lubridate]
* rmarkdown [@rmarkdown]
* skimr [@skimr]
* XML [@XML]
## Session info
......
This diff is collapsed.
File added
This diff is collapsed.
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment