ddi_valrng {rddi} | R Documentation |
valrng, invalrng, and their child nodes
Description
Values for a particular variable that represent legitimate responses (valrng) or illegitimate response (invalrng). Must include item or range as a child element.
Usage
ddi_valrng(...)
ddi_invalrng(...)
ddi_item(...)
ddi_key(...)
Arguments
... |
Child nodes or attributes. |
Details
Parent nodes
valrng
and invalrng
are contained in var
.
valrng and invalrng specific child nodes
ddi_item()
is the counterpart to range; used to encode individual values.
This is an empty element consisting only of its attributes. The "UNITS"
attribute permits the specification of integer/real numbers. The "VALUE"
attribute specifies the actual value.
ddi_key()
is the range key. This element permits a listing of the category
values and labels. While this information is coded separately in the Category
element, there may be some value in having this information in proximity to
the range of valid and invalid values. A table is permissible in this element.
Value
A ddi_node object.
Shared and complex child nodes
References
Examples
# ddi_valrng() and ddi_invalrng() requires either the ddi_item() or ddi_range() child node.
ddi_valrng(ddi_item())
ddi_invalrng(ddi_item())
ddi_valrng(ddi_range())
ddi_invalrng(ddi_range())
# Functions that must be wrapped in ddi_valrng() or ddi_invalrng()
ddi_item(VALUE = "1")
ddi_key("05 (PSU) Parti Socialiste Unifie et extreme gauche (Lutte Ouvriere)
[United Socialists and extreme left (Workers Struggle)] 50 Les Verts
[Green Party] 80 (FN) Front National et extreme droite [National Front
and extreme right]")