tests/03.R

library('cumplyr')

data <- data.frame(Name = c('A', 'B', 'C', 'D', 'A'), Time = 1:5, Value = seq(1, 9, by = 2))

iddply(data,
       equality.variables = c('Name'),
       lower.bound.variables = c(),
       upper.bound.variables = c(),
       norm.ball.variables = list(),
       func = function (df) {with(df, mean(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.