doc/quirk_example.R

results <- cumddply(rt.data,
                    c('Subject', 'Block'),
                    c('Trial'),
                    function (df) {with(df, data.frame(RT = RT, MeanRT = mean(RT)))})
# This doesn't work, because RT has many values in each df, whereas MeanRT is a unitary value.

Try the cumplyr package in your browser

Any scripts or data that you put into this service are public.

cumplyr documentation built on May 2, 2019, 2:13 p.m.