added MilWAUKeeWalks.Rmd
This commit is contained in:
parent
486ad2533c
commit
e71f197046
2 changed files with 350 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ TOPS_data <- TOPS_data %>% mutate(ped_inj = ifelse(ROLE1 %in% vuln_roles,
|
|||
INJSVR1,
|
||||
ifelse(ROLE2 %in% vuln_roles,
|
||||
INJSVR2,
|
||||
NA)))
|
||||
NA))) %>%
|
||||
mutate(ped_age = ifelse(ROLE1 %in% vuln_roles, age1, age2))
|
||||
|
||||
TOPS_data <- left_join(TOPS_data, injury_severity %>% select(InjSevName, code), join_by(ped_inj == code)) %>%
|
||||
mutate(InjSevName = factor(InjSevName, levels = injury_severity$InjSevName)) %>%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue