breakdown: Breakdown values of a variable by the number of people who...

Description Usage Arguments

Description

Breakdown values of a variable by the number of people who have that value or a higher value.

Usage

1

Arguments

var

character. The value to breakdown.

seq

list. A sequence of values to breakdown.

data.

The data to grap values from. This is assumed to be a three column melted dataframe, using reshape2 <http://cran.r-project.org/web/packages/reshape2/index.html>. The first column should contain IDs, the second column should contain variable names, and the third column should contain variable values.

e.g., breakdown('age', seq(5, 90, by = 5)) will tell me how many people are age 5 or older, how many people are age 10 or older, how many people are age 15 or older, etc. to age 90.


peterhurford/surveytools documentation built on May 25, 2019, 1:51 a.m.