statsRank: Calculates summary statistics for ranking type questions

Description Usage Arguments Value See Also

Description

Takes the result of a code_function, e.g. codeSingle(), and calculates summary values, for direct plotting by a plotFunction, e.g. plotBar()

Usage

1
  statsRank(surveyorCode, top_n = 3, ...)

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

top_n

Numeric, indicates how the ranking is summarised

...

other arguments not used by this method

Value

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

See Also

For an overview of the surveyor package surveyor

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


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