MTRejectNAs: A convenience function to reject results with NAs.

Description Usage Arguments Details Value

View source: R/MTRejectNAs.R

Description

This function rejects work that has NAs as results. This can be useful for situations where a microworker's browser manages to circumvent required HTML tags, or when microworkers are explicitly told which questions to complete and yet the microworker submits work with non-completed fields.

Usage

1
2
MTRejectNAs(results, resultsCols = NULL, extendRejects = 1,
  continue = "wait", sandbox = TRUE)

Arguments

results

A results object returned by e.g. MTGetHITTypeResults. REQUIRED.

resultsCols

The names of the columns in results to look for NAs. If resultsCols is not defined, it defaults to taking all of the response columns in a standard results object (columns 31+).

extendRejects

Declares how many assignments should be added to rejected HIT assignments. Default is 1.

continue

An option of whether to proceed with rejection and extension without review. Default is 'wait', and input values are 'Y', which will proceed without review, and 'N' which will terminate the function.

sandbox

Default is TRUE. Defines whether to work on live or sandbox Mechanical Turk site.

Details

This function looks in the results object for non-rejected assignments, looks for NA responses, and rejects assignments as appropriate. Prior to rejecting the HITs, the function will ask for confirmation.

Value

Returns the new rejects, unless the function is terminated which returns NULL, or if there are no new rejects, it prints "No new assignments to reject."


andrewbrownphd/MetaTurkR documentation built on Nov. 23, 2019, 4:17 p.m.