-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
56 lines (42 loc) · 1.5 KB
/
index.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
---
output:
html_document:
css: styles.css
runtime: shiny
---
## Bay Segment Hydrologic Estimates & Adjustment Factors
```{r, warning = F, message = F, echo = F}
knitr::opts_chunk$set(echo = TRUE, warning = F, message = F, echo = F)
library(knitr)
library(tidyverse)
library(kableExtra)
# # style file
# styles <- readLines('https://raw.githubusercontent.com/tbep-tech/css-styling/master/styles.css')
# writeLines(styles, 'styles.css')
data(yrests)
yrs <- unique(yrests$Year)
```
```{r reactive}
tabsel <- reactive({
# input
yrsel <- input$yrsel
totab <- yrests %>%
filter(Year == yrsel) %>%
select(-Year, -`Compliance Load`)
# tabular output
out <- HTML(knitr::kable(totab, format = 'html', digits = 2) %>%
kable_styling(full_width = T, font_size = 14))
return(out)
})
```
```{r}
column(12,
column(4,
selectInput('yrsel', 'Select year:', choices = yrs, selected = max(yrs))
)
)
```
`r renderText(input$yrsel)` annual hydrologic adjustment factor results by bay segment, based upon regressions developed in [TBEP Technical Publication #03-16](https://drive.google.com/file/d/11NT0NQ2WbPO6pVZaD7P7Z6qjcwO1jxHw/view). Results are considered draft and may change with updates to USGS flow and rainfall data. Consult the [annual compliance assessment reports](https://tbep.org/our-work/library/?table_filter=compliance){target="_blank"} for applicable load adjustment estimates.
```{r, results = 'asis'}
renderUI(tabsel())
```