Get a requester statistic or a statistic for a particular worker. RequesterReport
and WorkerReport
provide wrappers that return all available statistics.
GetStatistic(statistic, period = "LifeToDate", count = NULL,
response.group = NULL,
verbose = getOption('MTurkR.verbose', TRUE), ...)
RequesterReport(period = "LifeToDate",
verbose = getOption('MTurkR.verbose', TRUE), ...)GetWorkerStatistic(worker, statistic, period = "LifeToDate", count = NULL,
response.group = NULL,
verbose = getOption('MTurkR.verbose', TRUE), ...)
WorkerReport(worker, period = "LifeToDate",
verbose = getOption('MTurkR.verbose', TRUE), ...)
A character string containing a WorkerId.
A character string containing the name of a statistic. Statistics can be retrieved from ListStatistics
.
One of: “OneDay”, “SevenDays”, “ThirtyDays”, “LifeToDate”. Default is “LifeToDate”.
If period="OneDay"
, the number of days to return. Default is 1 (the most recent day).
An optional character string (or vector of character strings) specifying what details to return of “Request”, “Minimal”, or “Parameters”. For more information, see Common Parameters.
Optionally print the results of the API request to the standard output. Default is taken from getOption('MTurkR.verbose', TRUE)
.
Additional arguments passed to request
.
A data frame containing the Date, Value, and Statistic (and WorkerId, if GetWorkerStatistic
or WorkerReport
are called), and the value thereof. GetStatistic
and GetWorkerStatistic
return only information about the requested statistic as a data.frame. RequesterReport
and WorkerReport
return all of the requester and worker statistics, respectively, that are available in ListStatistics
.
Retrieve a specific requester or worker statistic. The list of available statistics can be retrieved by calling ListStatistics
. Useful for monitoring workers or one's own use of the requester system.
statistic()
is an alias for GetStatistic
. workerstatistic()
is an alias for GetWorkerStatistic
.
# NOT RUN {
GetStatistic("NumberHITsCompleted","OneDay")
RequesterReport("ThirtyDays")
GetWorkerStatistic("A1RO9UJNWXMU65","PercentHITsApproved","LifeToDate")
WorkerReport("A1RO9UJNWXMU65","SevenDays")
# }
Run the code above in your browser using DataLab