MTCount: Function to count assignments, update a counter qual, and...

Description Usage Arguments Value

View source: R/MTCount.R

Description

This function fetches the count of assignments a worker has completed from MTurk, adds a counter for newly completed assignments, and approves assignments.

Usage

1
2
MTCount(results = NULL, counterQual = NULL, countAll = FALSE,
  sandbox = TRUE, verbose = FALSE, outType = "full")

Arguments

results

A data frame of results returned from MTurk.

counterQual

The qualification ID string that identifies the counter qualification for this HIT.

countAll

Logical. Determines whether the function counts all of the assignments in the results object. If FALSE (default), the function will only count assigments with AssignmentStatus with a value of "Submitted". Note that if a column exists in the results object titled 'Counted' containing values of TRUE, these will not be counted.

sandbox

Logical. Whether to use the sandbox (TRUE) or not; default is TRUE.

verbose

Logical. Whether to print additional messages or not.

outType

String, case insensitive. Either set to "counted" or "full". If "counted", only the newly counted subset will be returned. Default is "full".

Value

If outType = "full", function returns the original object with a column titled "Counted", with values of TRUE for any newly counted assignments. If outType="counted", function returns only the portion of the object newly counted, with the "Counted" column appropriately populated.


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