I have n segmentation (0 to n-1) in a data. I know percentage of male in each segment.
How do I write a dynamic code to create a tibble containing segmentation and ma