Just apply the function you have used in stat_summary
:
tapply(m$value, m$time, mean_cl_boot)
The function tapply
is used to apply a function to subsets of data. Here, the data is m$value
. The subsets are defined by m$time
. The function mean_cl_boot
is applied to all subsets of the data separately.