splitBinCombine: Splits a data.frame, applies a function and combines into...

Description Usage Arguments See Also

View source: R/2statsHelpers.R

Description

This is a fast implementation of ddply, optimised for a as.surveyorCode object.

Usage

1
  splitBinCombine(dat, statsFunction = weightedCount)

Arguments

dat

a as.surveyorCode object

statsFunction

A function that calculates a weighed statistic, such as weightedMean, weightedMedian, weightedSum or weightedCount

See Also

splitMeanCombine

as.surveyorStats

Other stats helper functions: allNA, allNull, is.yesno, qType, reorderQuestion, reorderResponse, splitMeanCombine, splitPercentCombine, weightedCount, weightedMean, weightedMedian, weightedSum


andrie/surveyor documentation built on June 3, 2017, 7:04 p.m.