Retrieve various details of a HIT as a dataframe. What details are returned depend upon the requested ResponseGroup.
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'), ...)
An optional character string specifying the HITId of the HIT to be retrieved. Must specify hit
xor 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
.
An optional character string (or vector of character strings) specifying what details of each HIT to return of: “Request”, “Minimal”, “HITDetail”, “HITQuestion”, “HITAssignmentSummary”. For more information, see http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_CommonParametersArticle.html.
A logical indicating whether the dataframe of HITs should be returned. Default is TRUE
.
A logical indicating whether the list of each HIT's QualificationRequirements (stored as dataframes in that list) should be returned. Default is TRUE
.
Optionally print the results of the API request to the standard output. Default is taken from getOption('MturkR.verbose')
.
Additional arguments passed to request
.
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 response.group
parameter.
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
.
# NOT RUN {
GetHIT("2MQB727M0IGF304GJ16S1F4VE3AYDQ")
HITStatus("2MQB727M0IGF304GJ16S1F4VE3AYDQ")
hits <- c("2MQB727M0IGF304GJ16S1F4VE3AYDQ","AM4DB727M0IGF304GJ16S1F4VE36JIQ")
HITStatus(hits)
# }
Run the code above in your browser using DataLab