forked from decheine/complete-compendium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonster_index_data.Rmd
More file actions
123 lines (49 loc) · 1.27 KB
/
Copy pathmonster_index_data.Rmd
File metadata and controls
123 lines (49 loc) · 1.27 KB
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
---
title: "monster_index_data"
output: html_document
---
```{r}
library(tidyverse)
library(rjson)
library(stringr)
library(readODS)
quotemeta <- function(string) {
str_replace_all(string, "(\\W)", "\\\\\\1")
}
```
```{r}
options(print_min = 15)
options(dplyr.print_max = 1e9)
options(dplyr.tibble.print = 15)
options(max.print = 1000)
options(min.print = 20)
```
Reading in Echohawk's monstrous index and TSR product list
```{r}
options(max.print = 15)
options(dplyr.print_max = 1e9)
options(dplyr.tibble.print = 15)
read_ods("Echohawk's Complete D&D Monster Index (2008-12-29).ods")
```
```{r}
products <- read_ods("Products_2008-12-30.ods")
products
```
```{r}
```
```{r}
data.frame(unique(products$Rules))
```
```{r}
# products %>% filter(Rules == "AD&D2/D&D3")
# products %>% filter(Rules == "AD&D/AD&D2")
adnd2_products <- products %>% filter(Rules == "AD&D2")
tsr_product_monsters <- read_ods("TSRProductMonsters.ods", sheet = "Main")
adnd2_products
tsr_product_monsters
```
```{r}
missing_codes <- data.frame(tsr = unique(adnd2_products$`Product Code`)) %>% filter(!tsr %in% tsr_product_monsters$TSR)
missing_codes <- missing_codes %>% slice(-1)
adnd2_products %>% filter(`Product Code` %in% missing_codes$tsr)
```