Grouping factors in more general ones
Make a new column equal to „company“. Use the grep to replace military by „military“, use the grep to replace private by „private“. Change the new column to a factor.