Learn R Programming

MTurkR (version 0.5.1)

GetHIT: Get HIT

Description

Retrieve various details of a HIT as a dataframe. What details are returned depend upon the requested ResponseGroup.

Usage

GetHIT(hit, response.group = NULL,
       return.hit.dataframe = TRUE, return.qual.dataframe = TRUE,
       verbose = getOption('MTurkR.verbose'), ...)

HITStatus(hit = NULL, hit.type = NULL, verbose = getOption('MTurkR.verbose'), ...)

Arguments

hit
An optional character string specifying the HITId of the HIT to be retrieved. Must specify hit xor hit.type.
hit.type
An optional character string specifying the HITTypeId (or a vector of HITTypeIds) of the HIT(s) to be retrieved. Must specify hit xor hit.type, otherwise all HITs are returned in HITStatus.
response.group
An optional character string (or vector of character strings) specifying what details of each HIT to return of: Request, Minimal, HITDetail, HITQuestion, HITAssignmentSummary
return.hit.dataframe
A logical indicating whether the dataframe of HITs should be returned. Default is TRUE.
return.qual.dataframe
A logical indicating whether the list of each HIT's QualificationRequirements (stored as dataframes in that list) should be returned. Default is TRUE.
verbose
Optionally print the results of the API request to the standard output. Default is taken from getOption('MturkR.verbose').
...
Additional arguments passed to request.

Value

  • Optionally a dataframe containing the HITs and a list of each HIT's QualificationRequirements (stored as dataframes in that list in the order that HITs were retrieved.). The exact characteristics of each HIT returned depend upon the code{response.group} parameter.} references{ href{http://docs.amazonwebservices.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_GetHITOperation.html}{API Reference} } author{Thomas J. Leeper} %\note{} seealso{ code{GetHITsForQualificationType} code{GetReviewableHITs} code{SearchHITs} } examples{ dontrun{ GetHIT("2MQB727M0IGF304GJ16S1F4VE3AYDQ") HITStatus("2MQB727M0IGF304GJ16S1F4VE3AYDQ") hits <- c("2MQB727M0IGF304GJ16S1F4VE3AYDQ","AM4DB727M0IGF304GJ16S1F4VE36JIQ") HITStatus(hits) } } keyword{HITs}

Details

GetHIT retrieves characteristics of a HIT. HITStatus is a wrapper that retrieves the Number of Assignments Pending, Number of Assignments Available, Number of Assignments Completed for the HIT(s), which is helpful for checking on the progress of currently available HITs. Specifying a hit.type causes the function to first search for avialable HITs of that HITType, then return the requested information for each HIT. gethit() and hit() are aliases for GetHIT. status() is an alias for HITStatus.