- 1 Question
- 1.1 dataFile
- 1.2 dataReduction
- 1.3 deleteQuestion()
- 1.4 duplicate(name)
- 1.5 equals(obj)
- 1.6 guid
- 1.7 isBanner
- 1.8 isFilter
- 1.9 isHidden
- 1.10 isValid
- 1.11 isWeight
- 1.12 lastKnownDataReduction
- 1.13 name
- 1.14 needsCheckValuesToCount
- 1.15 questionType
- 1.16 type
- 1.17 uniqueValues
- 1.18 valueAttributes
- 1.19 variables
- 1.20 variableSetStructure
A question from one of the data files in your project, corresponding to a question in Q. A question is made up of one or more variables.
Gets the DataFile object that this question is part of.
Gets the DataReduction object for this question.
Deletes this question.
Duplicates this question and its variables. This is the same as using "Copy and Paste Question(s) | Exact" in Q.
|name||The name for the new question.|
|Returns:||The new Question object.|
Whether two objects are the same.
|obj||The object to compare against.|
|Returns:||true or false|
Get the question's internal unique identifier.
Returns true if this question is a banner, false otherwise. Banner questions and their variables cannot be modified directly, as they are simply a combination of their input questions.
Gets/sets whether this question can be used as a filter in crosstabs, etc.
Gets/sets whether this question is hidden, and thus cannot be used in crosstabs, etc.
Returns true is this question is valid, false otherwise. A question will be invalid if any of its variables are invalid, or it is a Grid type and Q cannot determine the 2D structure in the variable labels.
Gets/sets whether this question can be used as a weight in crosstabs, etc.
Get/set the question's name.
A flag that determines whether a Pick Any question has had its Values to Count checked or not. Set to false to remove the CHECK status from a newly created Pick Any Question.
Deprecated for Displayr - see variableSetStructure. Get or set the Question's type. This can be one of 'Text', 'Number', 'Pick One', 'Text - Multi', 'Number - Multi', 'Pick Any', 'Pick One - Multi', 'Pick Any - Compact', 'Pick Any - Grid', 'Number - Grid', 'Experiment', 'Ranking', 'Date' (date/time).
Returns the unique source values found in this question, as an array. The values in the array are sorted in ascending order, with any missing data (NaN) first. The values are source values (prior to any Value Attributes or Recode Rules being applied).
Gets the ValueAttributes object for a question. Typically you use this to adjust the values to count (for Pick Any questions), category names, or to remap values.
Gets an array of all the Variable objects that constitute this question.
Get the Question's type as used in Displayr, which is a combination of questionType and (for Pick One questions) its variable types. This can be one of 'Text', 'Numeric', 'Nominal', 'Ordinal', 'Text - Multi', 'Numeric - Multi', 'Binary - Multi', 'Nominal - Multi', 'Ordinal - Multi', 'Binary - Multi (Compact)', 'Binary - Grid', 'Numeric - Grid', 'Experiment', 'Ranking', 'Date/Time'.