dropout: Calculates at which questions respondents drop out.

View source: R/tools.R

dropoutR Documentation

Calculates at which questions respondents drop out.

Description

The number of respondents for each question is calculated as the length of the vector, after omitting NA values.

Usage

dropout(x, summary = TRUE)

Arguments

x

surveydata object, list or data.frame

summary

If TRUE, returns a shortened vector that contains only the points where respondents drop out. Otherwise, returns the number of respondents for each question.

Value

Named numeric vector of respondent counts

Examples

dropout(membersurvey[-(127:128)])

surveydata documentation built on March 31, 2023, 10:35 p.m.