drop_detect {dropout} | R Documentation |
Detect Instances of Dropout in Data
Description
The drop_detect
function detects participants who drop out of the survey by recognizing NA sequences up to the last question of the survey. Additionally, the function provides the column name and index where the dropout occurs.
Usage
drop_detect(data)
Arguments
data |
A dataframe in which to detect instances of dropout. |
Value
A dataframe containing the following columns:
-
drop: A logical value indicating whether dropout has occurred (
TRUE
for dropout,FALSE
otherwise). -
drop_index: The index of the column where dropout occurred (
NA
if no dropout). -
column: The name of the column where the dropout occurred (
<NA>
if no dropout).
Examples
## Not run:
# Example usage with the 'flying' dataframe
detect_result <- drop_detect(flying)
print(detect_result)
## End(Not run)
[Package dropout version 2.2.0 Index]