drop_detect | R Documentation |
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.
drop_detect(data)
data |
A dataframe in which to detect instances of dropout. |
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).
## Not run:
# Example usage with the 'flying' dataframe
detect_result <- drop_detect(flying)
print(detect_result)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.