-
Notifications
You must be signed in to change notification settings - Fork 0
/
war.qmd
42 lines (38 loc) · 797 Bytes
/
war.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
---
title: "War"
date: now
published-title: "Last Updated"
execute:
echo: false
---
```{r}
#| label: setup
suppressPackageStartupMessages({library(here)})
source(here('R/00_setup.R'))
```
```{r}
#| label: war
war <- read_csv(here('data/war.csv'),
#col_types = cols(.default = col_character()),
show_col_types = FALSE)
```
:::{.column-screen-inset}
```{r}
war |>
rowwise() |>
mutate(order = sum(c_across(starts_with('fame_')))) |>
ungroup() |>
arrange(desc(order)) |>
gt() |>
cols_label_with(fn = function(x) str_remove(x, 'fame_')) |>
cols_hide(order) |>
opt_table_font(
font = google_font('Martel Sans')
) |>
opt_interactive(
use_compact_mode = TRUE,
use_highlight = TRUE,
page_size_default = 50
)
```
:::