improving r script r to add columns to conflict rate table and bar chart to conflict patterns occurrences