Skip to main content
Solved

Replace name of those with less count value with majority group name


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.

Best answer by andreaatsafe

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

View original
Did this help you find an answer to your question?

2 replies

andreaatsafe
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • February 3, 2020

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


  • Author
  • February 4, 2020
andreaatsafe wrote:

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings