Ok, now I think I've understood, but I'm not sure since I think that my ave () solution does work.
I though you have several numerical variables and 1 factor; it is the opposite but it is still possible :.