index Function (GPL)

Syntax

index()

Description

Creates a new variable by indexing each case with an integer. The new variable is essentially a case number.

Examples

Figure 1. Example: Create an index variable and label by the variable
TRANS: casenum = index()
ELEMENT: point(position(x*y), label(casenum))