Skip to content

Commit

Permalink
Confirm fix for #235
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Jul 31, 2024
1 parent 2639739 commit 4dd239b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions data-raw/tests/test-format_vehicle_issue_235.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,34 @@ names(cas)
table(cas$age_of_casualty)
# Data missing or out of range
# 211849
```

```{r}
# remotes::install_dev("stats19")
devtools::load_all()
packageVersion("stats19")
# [1] ‘3.1.0’
cas = get_stats19(type = "cas", year = 1979)
names(cas)
table(cas$age_of_casualty)
# 0 1 2 3 4 5 6 7 8 9 10
# 11975 29605 44556 59072 67280 73148 84048 92949 100462 104284 112180
# 11 12 13 14 15 16 17 18 19 20 21
# 126823 142553 136145 142879 148432 269898 427903 480562 426354 414574 350898
# 22 23 24 25 26 27 28 29 30 31 32
# 325835 301848 283914 304756 257324 239108 235972 220501 270808 196476 199364
# 33 34 35 36 37 38 39 40 41 42 43
# 186199 180816 207144 170728 161294 161234 153645 193204 140151 144187 135646
# 44 45 46 47 48 49 50 51 52 53 54
# 129523 149227 122231 118501 117137 112725 148231 102319 103586 97970 94965
# 55 56 57 58 59 60 61 62 63 64 65
# 103105 87246 82137 80674 76763 103980 65468 66749 61535 58765 72117
# 66 67 68 69 70 71 72 73 74 75 76
# 49745 50347 49923 47747 67806 42656 45134 42026 41126 44664 38047
# 77 78 79 80 81 82 83 84 85 86 87
# 34527 34512 32642 36097 26311 25547 21777 19712 16941 14080 11145
# 88 89 90 91 92 93 94 95 96 97 98
# 8822 7197 5769 3722 2695 1908 1342 885 546 351 333
# 99 100 101 102 103 104
# 3356 13 7 4 1 1
```

0 comments on commit 4dd239b

Please sign in to comment.