GenerateQualificationRequirement | R Documentation |
Generate a QualificationRequirement data structure for use with
CreateHIT
or RegisterHITType
.
GenerateQualificationRequirement(quals)
quals |
A list of lists of Qualification parameters. Each list contains: QualificationTypeId (string, REQUIRED), Comparator (string, REQUIRED), LocaleValues (vector of integers), LocaleValues (list containing Country = string, and optionally Subdivision = string), RequiredToPreview (logical), ActionsGuarded (string). See example below. |
A convenience function to translate the details of a
QualificationRequirement into the necessary structure for use in the
qual.req
parameter of CreateHIT
or
RegisterHITType
. The function accepts a list of lists of
Qualification parameters.
Returns a special reticulated 'tuple' object
Tyler Burleigh, Thomas J. Leeper
CreateHIT
RegisterHITType
## Not run:
quals.list <- list(
list(QualificationTypeId = "2F1KVCNHMVHV8E9PBUB2A4J79LU20F",
Comparator = "Exists",
IntegerValues = 1,
RequiredToPreview = TRUE
),
list(QualificationTypeId = "00000000000000000071",
Comparator = "EqualTo",
LocaleValues = list(Country = "US"),
RequiredToPreview = TRUE
)
)
GenerateQualificationRequirement(quals.list) -> qual.req
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.