This function finds (potentially multiple) weapon positions and returns them
in a tibble of nested lists, which can be integrated into a trial_results tibble
with unnest()
find_weapon_position(
scenario_data,
weapon_list = c("HoldableStone", "HoldableTorch", "HoldableStick")
)A tibble of nested lists
`trial_results %>%`
#> Error: object 'trial_results %>%' not found
`mutate(position = find_weapon_position(scenario_data_0)) %>%`
#> Error: object 'mutate(position = find_weapon_position(scenario_data_0)) %>%' not found
`unnest(position, sep = "_")`
#> Error: object 'unnest(position, sep = "_")' not found