MTCountAndApprove: Note: non-functioning. Kept in case code snippets are still...

Description Usage Arguments Value

View source: R/MTCountAndApprove.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
3
MTCountAndApprove(results = NULL, counterQual = NULL, countAll = FALSE,
  feedback = "Thank you.", approve = TRUE, 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".

feedback

The text of an email to send to the workers. Default is "Thank you.".

approve

Logical. Whether to approve assignments after counting. This will return the results object, but with AssignmentStatus set to "ApprovedLocal". This prevents needing to refetch results to continue working with the results. Default is TRUE.

sandbox

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

verbose

Logical. Whether to print additional messages or not.

outType

Either set to "sub" or "full". If "sub", only the newly evaluated subset will be returned. Default is "full".

Value

If approve = TRUE, it will change the AssignmentStatus column to "ApprovedLocal". Otherwise, the response is silent.


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