Displaying 1 result from an estimated 1 matches for "dbfunc".
Did you mean:
bfunc
2011 Jul 16
1
Fwd: construct boxplots from data with varying column widths
...; head(data2)
> function. runtime
> 1 fn_slot03_byperson 38.083
> 2 fn_slot03_byperson 32.396
> 3 fn_slot03_byperson 41.246
> 4 fn_slot03_byperson 92.904
> 5 fn_slot03_byperson 130.512
> 6 fn_slot03_byperson 113.853
>
> tmp <- data2[data2$dbfunc=='fn_slot03_byperson',]
>> length(tmp$runtime)
> [1] 24004
>> ave(tmp$runtime)[1]
> [1] 41.8108
I would have guessed you would get an error, but maybe if ave() is
given no grouping factor it just returns a grand mean.
Try instead one of these:
aggregate(data2, dat...