Hi
I think it's trivial but I've only started to learn JSL syntax and I'm struggling with this one.
Saying I have a column "myValues" that contains my numeric values and a column "myGroups" that is a categorical variable to group my values together. What formula can I use in a third column to get the mean of "myValues" group by group.
E.g.
| myValues | myGroups | myMeans |
|---|
| 1 | A | 2 |
| 2 | A | 2 |
| 3 | A | 2 |
| 4 | B | 5 |
| 5 | B | 5 |
| 6 | B | 5 |
| 7 | C | 7.5 |
| 8 | C | 7.5 |
| 9 | D | 9 |
Thank you