drop_prepare {dropout}R Documentation

internal function to detect dropouts

Description

internal function to detect dropouts

Usage

drop_prepare(data, last_col)

Arguments

data

dataframe or tibble to detect dropouts.

last_col

Index position or column name of the last survey item. This is an optional argument and is needed if there are other columns in your dataframe after the survey items you want to detect the dropout for.

Value

A list containing a dataframe or tibble with the following for each row of your dataset: A logical whether a dropout has been detected and, if so, the column name where it occurs and the index of the column. As well as the value of the col_index


[Package dropout version 1.0.0 Index]