Update the Reject column based on the approve column
create_reject_col.Rd
Update the Reject column based on the approve column
Arguments
- df
the batch data frame provided from the create_approve_col() function
- keep
The keep character that gets returned from the discard_list function
- fail
character vector of participants that failed the attention check
Value
a data frame with the reject column that has been updated" it will inform that they either failed the attention check or that the mturk code does not match. If both are not the case then participants will be comnpensated and the reponse coloum willl have an epmty string
Examples
create_reject_col(batch_data, keep, fail)
#> Error in dplyr::mutate(df, Reject = dplyr::case_when(Approve == "" & !(Answer.surveycode %in% keep) ~ "MTurk code does not match.", Approve == "" & Answer.surveycode %in% fail ~ "Failed the attention check.", TRUE ~ "")): object 'batch_data' not found