CreateQualificationType
, or the details of a new QualificationType can be specified atomically. This function also provides various options for automatically specifying the value of a worker's QualificationScore based upon a worker's statistics.AssignQualification(qual, workers, value = "1", notify = FALSE,
name = NULL, description = NULL, keywords = NULL,
status = NULL, retry.delay = NULL,
test = NULL, answerkey = NULL, test.duration = NULL,
auto = NULL, auto.value = NULL,
conditional.statistic = NULL, conditional.comparator = NULL,
conditional.value = NULL, conditional.period = NULL,
set.statistic.as.value = FALSE,
keypair = credentials(), print = getOption('MTurkR.print'),
browser = getOption('MTurkR.browser'),
log.requests = getOption('MTurkR.log'),
sandbox = getOption('MTurkR.sandbox'),
validation.test = getOption('MTurkR.test'))
FALSE
.UpdateQualificationType
.UpdateQualificationType
. Maximum of 1000 characters.FALSE
.ListStatistics
that should be used to conditionally assign the QualificationType to workers.value
. One of <
,<=< code="">,>
,>=
,==
,!=
,E
=<>
FALSE
and value
is used instead.credentials
.TRUE
.FALSE
.TRUE
. See readlogfile
for details.FALSE
.FALSE
. This option is not available for conditional qualification assignment.CreateQualificationType
or with the characteristics of a new QualificationType specified atomically. Qualifications can also be assigned conditional on each worker's value of a specified statistic (including assigning the value of the specified statistic as the worker's score for the Qualification).
AssignQualifications()
and assignqual()
are aliases.CreateQualificationType
UpdateQualificationScore
# assign qualification to single worker
a <- AssignQualification("2YCIA0RYNJ9262B1D82MPTUEXAMPLE","A1RO9UJNWXMU65",values="50")
# assign a new qualification (defined atomically) to multiple workers
b <- AssignQualification(
workers=c("A1RO9UJNWXMU65","A9MZ9UJN4DMU78"),
title="Worked for me before",
description="This qualification is for people who have worked for me before",
keywords="Worked for me before")
# assign a qualification to a list of workers based upon their worker statistics
c <- AssignQualification("2YCIA0RYNJ9262B1D82MPTUEXAMPLE",
workers=c("A1RO9UJNWXMU65","A9MZ9UJN4DMU78","AE4Q9UYN4UI97D"),
conditional.statistic="NumberAssignmentsApproved",
conditional.comparator=">", conditional.value="5",
conditional.period="LifeToDate", set.statistic.as.value=TRUE)
Run the code above in your browser using DataLab