forked from scarnecchia/scrape_oryx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
executable file
·85 lines (69 loc) · 2.68 KB
/
index.qmd
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
title: "Tallies"
date: "`r format(Sys.time(), '%d %B %Y')`"
author: "D. Scarnecchia"
format:
html:
anchor-sections: true
---
```{r setup, include=FALSE}
# library(renv)
# library(rvest)
# library(dplyr)
# library(tidyr)
# library(lubridate)
# library(purrr)
# library(magrittr)
# library(tibble)
# library(stringr)
# library(readr)
# library(glue)
# library(logr)
# library(kableExtra)
source("R/functions.R")
source("R/scrape_data.R")
source("R/totals_by_type.R")
source("R/per_event.R")
source("R/daily_count.R")
```
This page provides the most recent tallies of [Oryx's excellent list of Russian and Ukrainian equipment losses](https://www.oryxspioenkop.com/2022/02/attack-on-europe-documenting-equipment.html) from the 2022 Russian Invasion of Ukraine[^1]. Up-to-date output datasets can be found at in the [oryx_data](https://github.com/scarnecchia/oryx_data) repo. This repo is updated automatically daily at 22:30 EDT/EST. The code for this tool can be downloaded at [scrape_oryx](https://github.com/scarnecchia/scrape_oryx/releases)
[^1]: [Wikipedia](https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine)
## Graphs
```{r daily_graph, fig.align='center', echo=FALSE, warning=FALSE, message=FALSE}
graph_counts(daily_count, "All Types", "type_total")
```
## System Type {.tabset}
::: callout-important
Due to how the data is recorded, weapons systems may be recorded in here twice\-\--\*e.g.\*, if it is listed as abandoned and captured, a system will be counted in both the abandoned and captured tallies.
:::
### Russia
```{r russia-total-system-type, echo=FALSE, warning=FALSE, message=FALSE}
totals_by_type() %>%
dplyr::filter(country == "Russia") %>%
kableExtra::kbl(caption = "Russia: Totals by System Type and Status") %>%
kableExtra::kable_classic(font_size = 16)
```
### Ukraine
```{r total-system-type, echo=FALSE, warning=FALSE, message=FALSE}
totals_by_type() %>%
dplyr::filter(country == "Ukraine") %>%
kableExtra::kbl(caption = "Ukraine: Totals by System Type and Status") %>%
kableExtra::kable_classic(font_size = 16)
```
## By System {.tabset}
### Russia
```{r russia-total-system, echo=FALSE, warning=FALSE, message=FALSE}
total_by_system_wide(totals_by_system) %>%
dplyr::filter(country == "Russia") %>%
dplyr::arrange(desc(total)) %>%
kableExtra::kbl(caption = "Russia: Totals by System and Status") %>%
kableExtra::kable_classic(font_size = 16)
```
### Ukraine
```{r total-system, warning=FALSE, echo=FALSE, message=FALSE}
total_by_system_wide(totals_by_system) %>%
dplyr::filter(country == "Ukraine") %>%
dplyr::arrange(desc(total)) %>%
kableExtra::kbl(caption = "Ukraine: Totals by System and Status") %>%
kableExtra::kable_classic(font_size = 16)
```