Join STATS19 tables to generate UpSet plots with. In the case of vehicle type UpSet plots, the columns will be types of vehicles and a boolean to indicate if they were involved in the particular crash. The accident severity will remain as column too.

tc_join_stats19_for_upset(crashes, casualties, vehicles, pattern_match = NULL)

Arguments

crashes

The accidents table of crashes from STATS19 data

casualties

The casualty table from STATS19 data

vehicles

The vehicles table from STATS19 data

pattern_match

Character string in the form of c("car" = "car", "bike" = "bike") that replaces all parts of the match.