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")
)

Arguments

scenario_data

A scenario list

weapon_list

A string vector of weapon names (default: c("HoldableStone", "HoldableTorch", "HoldableStick"))

Value

A tibble of nested lists

Examples

`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