statsCentral: Calculates central tendency.

Description Usage Arguments Value See Also

Description

Add description

Usage

1
2
3
  statsCentral(surveyorCode,
    statsFunction = c("weightedMean", "median", "sum", "count"),
    ylabel = "Mean", formatter = "formatRound", ...)

Arguments

surveyorCode

An object of class "surveyorCode". This is a list with the first element being a data frame with four columns: cbreak, question, response, weight

statsFunction

The name of a weighted central tendency function, e.g. weightedMean, weightedSum, weightedMedian or weightedCount

ylabel

y-axis label on plot

formatter

A formatting function, such as formatPercent

...

Other arguments passed to as.surveyorStats

Value

A data frame with three columns: cbreak, question, value

See Also

For an overview of the surveyor package surveyor

Other statsFunctions: statsBin, statsBinPercent, statsCount, statsGuess, statsMean, statsMedian, statsNetScore, statsRank, statsSum, statsText


andrie/surveyor documentation built on May 10, 2019, 11:21 a.m.