How to get 95%CIs with aggregate function

Hello,

I am using the function ''aggregate'' to get mean values by group (e.g mean time by bmi group).

I was wondering if it is possible to get 95% CIs along with the mean using this function.

Thanks in advance.