Learn R Programming

cumplyr (version 0.1-1)

cumplyr-package: Extends ddply to allow calculation of cumulative quantities.

Description

Extends ddply to allow calculation of cumulative quantities.

Arguments

Details

Package:
cumplyr
Type:
Package
Version:
0.1-1
Date:
2012-05-02
License:
MIT

Examples

Run this code
library('cumplyr')

data(rt.data)

results <- cumddply(rt.data,
                    c('Subject', 'Block'),
                    c('Trial'),
                    function (df) {with(df, mean(RT))})

print(results)

Run the code above in your browser using DataLab