I need to create a workspace that I can use to find groups (brands) that are wrong or do not fit with the majority of what is in my existing shapefile. For example: If 1000 Boston Pizza have group of 'Boston Pizza' and 5 have a group of 'Boston Pizza Restaurant and Bar' - then the logic should replace those 5 with the majority group.
Hi @plasmajay,
You could try using the StatisticsCalculator and analyze the group attribute and specify an attribute to hold the mode value:
Then using the results from the complete port of the StatisticsCalculator, you can use the AttributeManager to set the value for the "group" attribute to be the value of the "mode" attribute.
Hope that helps!
Andrea
Hi @plasmajay,
You could try using the StatisticsCalculator and analyze the group attribute and specify an attribute to hold the mode value:
Then using the results from the complete port of the StatisticsCalculator, you can use the AttributeManager to set the value for the "group" attribute to be the value of the "mode" attribute.
Hope that helps!
Andrea
Hello @andreaatsafe, thank you for your reply, I will try that and let you know if it works.
Thank you.