GenerateQualificationRequirement: Generate QualificationRequirement

GenerateQualificationRequirementR Documentation

Generate QualificationRequirement

Description

Generate a QualificationRequirement data structure for use with CreateHIT or RegisterHITType.

Usage

GenerateQualificationRequirement(quals)

Arguments

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.

Details

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.

Value

Returns a special reticulated 'tuple' object

Author(s)

Tyler Burleigh, Thomas J. Leeper

References

API Reference

See Also

CreateHIT

RegisterHITType

Examples


## 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)



pyMTurkR documentation built on May 29, 2024, 6:13 a.m.